PowerPoint Viewer ActiveX Control

Move

 

Move the PowerPoint window.

Public Function Move(
 ByVal iX As Integer ,_
 ByVal iY As Integer
)

 

Parameter

iX- Specifies upper-left corner x-coordinate of the PowerPoint Window.
iY- Specifies upper-left corner y-coordinate of the PowerPoint Window.


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