The following code in a click event on a form will open and display a ppt file with powerpoint, not the viewer installed on this computer, however the slide show does not play, it just sits there on the first screen for the time in the wait command. I saved the file with one second intervals and have applied the settings to all the slides. I cannot find a command or setting to get it going.
thanks
wjwjr
Code:
* Clean out any existing references to servers.
* This prevents memory loss to leftover instances.
RELEASE ALL LIKE o*
* For demonstration purposes, make oPowerPoint and oPresentation
* available after this program executes.
PUBLIC oPowerPoint, oPresentation
SET PATH TO "c:\pptapp"
* Open PowerPoint
oPowerPoint = CreateObject("PowerPoint.Application")
oPowerPoint.Visible = .T.
*open the file
oPresentation = getobject("c:\pptapp\Helpful_Full.ppt")
oPresentation.Application.visible = .t.
* Run the slideshow.
*Both Methods to run the show give the same results
*oPresentation.SlideShowSettings.Run()
With oPresentation.SlideShowSettings
.ShowType = 3
.LoopUntilStopped = 1
.RangeType = 1
.AdvanceMode = 2
.Run
EndWith
*put total runtime in timeout
WAIT WINDOW [waiting for the show to finish] TIMEOUT 25
*exit powerpoint
oPowerpoint.quit
* Clean out any existing references to servers.
* This prevents memory loss to leftover instances.
RELEASE ALL LIKE o*
wjwjr