PowerPoint Viewer ActiveX Control

SetPPTViewerParent

 

Specifies a parent window for the PowerPoint window.

Public Function SetPPTViewerParent(
 ByVal ihParentWnd As long
)

 

Parameter

Specifies a handle to the parent window, or NULL to remove the existing parent.


No Return Value


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
  pptviewerObj.SetPPTViewerParent hWnd
else
 MsgBox "Your computer have not installed MS Power Point Viewer, try installing it first"
end if