开发者

C# : How to convert .pptx to images?

How to convert .pptx 开发者_StackOverflowto images? I want to get the image of each .pptx page


I got it.

string str1 = @"C:\Users\prince\Desktop\PRINCE-PC 11-12-2553 14.07.57\SlideImages";

string str = @"C:\Users\prince\Desktop\PRINCE-PC 11-12-2553 14.07.57\slide.ppt";

Application pptApplication = new Application();
Presentation pptPresentation = pptApplication.Presentations.Open(str, MsoTriState.msoFalse, MsoTriState.msoFalse, MsoTriState.msoFalse);
pptPresentation.SaveAs(str1, PpSaveAsFileType.ppSaveAsJPG, MsoTriState.msoFalse);
pptPresentation.Close();

str1 = OutputFolder str = powerpoint's filepath


I think that one of the options of saving the pretension for the web will create images out of the slides. Check it out.

AT power point 2010 you have save as JPG. it does what you ask.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜