Exports the active slide as a image file
Usage:
pptExportImg (object me, integer w, integer h, string filePath )
Parameters:
w (integer) - width of the exported image
h (integer) - height of the exported image
filePath (string) - the path to an save the image file
Returns:
(integer) - The success code
Example:
-- asks user for a PowerPoint file, then exports every slide in the PowerPoint file onto the hard disk
xtRose = xtra("Rosetta").new( )
-- ask user for PowerPoint file
strPPTfile = xtRose.dlgFile( 2, the moviePath, "untitled.ppt", "Microsoft PowerPoint File (*.ppt)|*.ppt|Microsoft PowerPoint Template (*.pot)|*.pot", "ppt")
-- check if path was valid
If ( xtRose.sysFileExist( strPPTfile ) <> TRUE ) Then return
-- tell PowerPoint to export every slide
xtRose.pptLaunch( )
xtRose.pptOpen( strPPTfile )
nSlides = xtRose.pptCount( )
repeat with i = 1 to nSlides
xtRose.pptGo( i )
xtRose.pptExportImg( 1024, 768, the moviepath&"Slide"&i&".png")
end repeat
xtRose.pptClose( )
xtRose.pptQuit( )
Notes:
PowerPoint may not be installed with all the image type encoders. It is recommended that images are saved in these formats: JPG, PNG, WMF, GIF, BMP.