Convert PPTX to PPT in C#
Contents
[
Hide
]
Overview
This article explains how to convert PowerPoint Presentation in PPTX format into PPT format using C#. The following topic is covered.
- Convert PPTX to PPT in C#
C# Convert PPTX to PPT
For C# sample code to convert PPTX to PPT, please see the section below i.e. Convert PPTX to PPT. It just loads the PPTX file and saves in PPT format. By specifiying different save formats, you can also save PPTX file into many other formats like PDF, XPS, ODP, HTML etc. as disscussed in these articles.
- C# Convert PPTX to PDF
- C# Convert PPTX to XPS
- C# Convert PPTX to HTML
- C# Convert PPTX to ODP
- C# Convert PPTX to Image
Convert PPTX to PPT
To convert a PPTX to PPT simply pass the file name and save format to the Save method of Presentation class. The C# code sample below converts a Presentation from PPTX to PPT using default options.
// Instantiate a Presentation object that represents a PPTX file
Presentation pres = new Presentation("presentation.pptx");
// Saving the PPTX presentation to PPT format
pres.Save("presentation.ppt", SaveFormat.Ppt);