現在、WPFプログラム内でPowerPointを開こうとしています。それを自分のページに埋め込み、プレゼンテーションにカスタムコントロールを使用したいと思います(デフォルトのユーザーバーではありません)。
string FileName = "filePath";
Microsoft.Office.Interop.PowerPoint.Application application = new PowerPoint.Application();
application.SlideShowEnd += new Microsoft.Office.Interop.PowerPoint.EApplication_SlideShowEndEventHandler(powerpnt_SlideShowEnd);
Microsoft.Office.Interop.PowerPoint.Presentation presentation = application.Presentations.Open2007(FileName, Microsoft.Office.Core.MsoTriState.msoTrue, Microsoft.Office.Core.MsoTriState.msoFalse, Microsoft.Office.Core.MsoTriState.msoFalse, Microsoft.Office.Core.MsoTriState.msoTrue);
Microsoft.Office.Interop.PowerPoint.SlideShowSettings sst = presentation.SlideShowSettings;
sst.ShowType = Microsoft.Office.Interop.PowerPoint.PpSlideShowType.ppShowTypeSpeaker;
sst.Run();
コードは機能しており、PPTプレゼンテーションを開くことができますが、フルスクリーンであり、ウィンドウを処理する方法が見つかりません...
何か案が?