我正在寻找一种方法,以出口的每一张幻灯片的PowerPoint文件作为html文件。
我尝试过很多方法:
using Powerpoint = Microsoft.Office.Interop.PowerPoint;
PowerPoint.Application app = new Powerpoint.Application();
PowerPoint.Presentation pres = app.presentation.Open(filepath+"filename.ppt", MsoTriState.msoTrue, MsoTriState.msoFalse, MsoTriState.msoTrue);
//Trying to export presentation as Html
pres.SaveAs(filepath+"filename.html", PowerPoint.PpSaveAsHtml, MsoTriState.msoTrue);
//Trying to export each Slide as image. Unfortunately don't export as html
int i = 0;
foreach (PowerPoint.Slide slide in press.Slide){
i+=1;
String oPath = filepath+"filename_"+i+".jpg";
slide.Export(oPath, "jpg", 1024, 768);
}
pres.Close();
App.Quit();我能否以编程方式将每张幻灯片导出为保留动画的简单html文件。
发布于 2013-09-03 18:44:11
最好的方法是使用一个转换器来完成。SlideGo是一个免费软件,它可以选择将每张幻灯片转换成一个保留所有动画的超文本标记语言文件。实际上,它甚至比许多商业工具都要好。
https://stackoverflow.com/questions/16838072
复制相似问题