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 ファイルとして各スライドをプログラムでエクスポートできますか?