|
Open the PPT, PPTX, PPS file and play the presentation.
Parameter
strPPTFile - the path of PPT file. iLeft - Specifies upper-left corner x-coordinate of the PowerPoint Window. iTop - Specifies upper-left corner y-coordinate of the PowerPoint Window. iWidth - Specifies width of the PowerPoint Window. iHeight - Specifies height of the PowerPoint Window.
Return Value return true if open the PPT file successful, Otherwise return false.
Example
|
Visual Basic Syntax Public pptviewerObj As Object Set pptviewerObj = CreateObject("POWERPOINTVIEWER.PowerPointViewerCtrl.1")
If pptviewerObj.IsPPTViewerInstalled Then pptviewerObj.Open "c:\yourppt.pptx", 0, 0, 640, 480 else MsgBox "Your computer have not installed MS Power Point Viewer, try installing it first" end if
|
|
|