Mi piacerebbe essere in grado di avanzare attraverso una presentazione di PowerPoint premendo i pulsanti in un modulo di Windows. Ecco un po 'di codice che ho trovato da http://bytes.com/topic/c-sharp/answers/272940-open-powerpoint-presentation-c-window-form che si apre uno spettacolo di presentazione di diapositive di Powerpoint:C# - modo per avanzare programmaticamente la presentazione di Powerpoint?
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();
non ho trovato metodi che possono avanzare attraverso le diapositive, però. Qualche idea?
(In realtà quello che sto cercando di fare è usare il WiiRemote per far avanzare le diapositive, per un progetto studentesco).