0

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

4

1 に答える 1

0

コンバーターを使用するのが最善です。SlideGo は、すべてのアニメーションを保持したまま、各スライドを 1 つの HTML ファイルに変換するオプションを持つフリーウェアです。実際、多くの商用ツールよりも優れています。

于 2013-09-03T10:44:10.690 に答える