Click here to Skip to main content
15,905,967 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
SQL
How should I convert ppt slideshow to pptx programatically using c#.

I don't want to install office on server side for this action , I want to find a way without using Microsoft.Office.Interop.PowerPoint.

Any suggestions ?
Posted
Comments
PeiWHoward 14-Jul-17 5:02am    
Here is another suggestion, this PowerPoint library for C#.
To achieve that conversion with it you simply need to use the following:

PresentationDocument presentation = PresentationDocument.Load("Input.ppt");
presentation.Save("Output.pptx");

Also you can refer to a following example as well which shows how to load / save PPTX in C# / VB.NET.

You can use b2xtranslator for that, you can find it on sourceforge

http://b2xtranslator.sourceforge.net/[^]

Renaming the file mentioned above isn't the solution, a PPT file is a binary compound storage file and a PPTX is more like a ZIP file.
 
Share this answer
 
Comments
[no name] 11-Jun-14 9:40am    
+5.
I'm not sure it's still true with the latest version of power point, but we just used to rename the file. It's all based on the filename extension.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900