Spire.Presentation is a professional PowerPoint® compatible library that enables developers to create, read, write, modify, convert and Print PowerPoint documents. Get free and professional technical support for Spire.Presentation for .NET, Java, Android, C++, Python.

Fri Oct 25, 2024 9:47 am

I want to generate a pptx output. When deciding the file format, there are two options available to me.

1. https://www.e-iceblue.com/apireference/ ... ersion.htm
Member Name | Value
Pptx2007 | 1
Pptx2010 | 2
Pptx2013 | 3
Pptx2016 | 4

2. https://www.e-iceblue.com/apireference/ ... Format.htm
Member Name | Value
Pptx2007 | 2
Pptx2010 | 3
Pptx2013 | 4

Why does one have `Pptx2016` and the other does not? What's the difference between these two?

boosted_d16
 
Posts: 34
Joined: Wed Apr 19, 2023 11:41 am

Mon Oct 28, 2024 8:33 am

Hello,

Thanks for your inquiry. Please note that the FormatAndVersion class is used to retrieve the type and version of the loaded PowerPoint file.
Code: Select all
Presentation pp = new Presentation();
ppt.LoadFromFile(filePath);
FormatAndVersion fv = ppt.FormatAndVersion;

If you want to specify the format of the output pptx file, you should use the enumeration values in the FileFormat class. If you have any other questions, please feel free to write to me.

Sincerely,
Amin
E-iceblue support team
User avatar

Amin.Gan
 
Posts: 282
Joined: Mon Jul 15, 2024 5:40 am

Return to Spire.Presentation