Running Powerpoint

BlitzPlus Forums/BlitzPlus Programming/Running Powerpoint

Basically, find the switch you need from the web page I posted and then you just add them to the end of the string you are executing (after the filename).

For example, to start a presentation from a specific slide (let's say slide 5 as an example), you'd do...

ExecFile( "pptview.exe " + Chr(34) + "C:\mypowerpointfile.ppt" + Chr(34) + " <b>/n5</b>" ) ;Start on Slide 5
Or, say you wanted to start the viewer without the splash screen (using /s) then you'd do...

ExecFile( "pptview.exe " + Chr(34) + "C:\mypowerpointfile.ppt" + Chr(34) + " <b>/s</b>" ) ;Start without the PowerPoint splash screen
Or maybe, you might want to do both:

ExecFile( "pptview.exe " + Chr(34) + "C:\mypowerpointfile.ppt" + Chr(34) + " <b>/s /n5</b>" ) ;Start at slide 5, without showing the PowerPoint splash screen
Hope this helps,

Seb