Previous - pptWidth Section Home - Microsoft PowerPoint Next - pptCount


pptHeight ( )

Obtains the standard height in pixels of a slide in PowerPoint

Usage:

pptHeight (object me)

Parameters:

None

Returns:

(float) - The height of the slide window in pixels

Example:

-- creates a new PowerPoint file based on the a screen capture of the stage
xtRose = xtra("Rosetta")New( )

-- take a screen capture of the stage off screen buffer
xtRose.imgFromScreen( 1 )

-- save the image to a temp folder
strTempFolder = xtRose.sysFolderTemp( )
strTempFilePath = xtRose.sysFileTemp( strTempFolder, "roseTmp" )
xtRose.imgSave(strTempFilePath)

-- ask user where they would like to save the PowerPoint file
strSavePath = xtRose.dlgFile( 1, the moviepath, "untitled.ppt", "Microsoft PowerPoint File (*.ppt)|*.ppt", "ppt")

-- create a new PowerPoint
NW = integer( xtRose.pptWidth( ) )
NH = integer( xtRose.pptHeight( ) )
xtRose.pptLaunch( )
xtRose.pptNewBlank( )
xtRose.pptAddSlide( 1 )
xtRose.pptInsertImg( 0, 0, NW, NH, strTempFilePath )
xtRose.pptSave( strSavePath )
xtRose.pptClose( )
xtRose.pptQuit( )

-- delete the temp image file
xtRose.sysFileDelete (strTempFilePath )

Notes:


Previous - pptWidth Section Home - Microsoft PowerPoint Next - pptCount