Windows フォームのボタンを押すことで、Powerpoint プレゼンテーションを進められるようにしたいと考えています。Powerpoint プレゼンテーション スライド ショーを開くhttp://bytes.com/topic/c-sharp/answers/272940-open-powerpoint-presentation-c-window-formから見つけたコードを次に示します。
Microsoft.Office.Interop.PowerPoint.Application oPPT;
Microsoft.Office.Interop.PowerPoint.Presentations objPresSet;
Microsoft.Office.Interop.PowerPoint.Presentation objPres;
//the location of your powerpoint presentation
string strPres = @"filepath";
//Create an instance of PowerPoint.
oPPT = new Microsoft.Office.Interop.PowerPoint.ApplicationClass();
// Show PowerPoint to the user.
oPPT.Visible = Microsoft.Office.Core.MsoTriState.msoTrue;
objPresSet = oPPT.Presentations;
//open the presentation
objPres = objPresSet.Open(strPres, MsoTriState.msoFalse,
MsoTriState.msoTrue, MsoTriState.msoTrue);
objPres.SlideShowSettings.Run();
ただし、スライドを進める方法は見つかりませんでした。何か案は?
(実際に私がやろうとしているのは、学生のプロジェクトで WiiRemote を使用してスライドを進めることです)。