Prints the active PowerPoint presentation
Usage:
pptPrint (object me, string printerName, integer startSlide, integer endSlide, integer outputType, integer hasBorder, integer colorType )
Parameters:
printerName ( string ) - the name of the printer. Leave EMPTY if you wish to print to the default printer
startSlide (integer) - the starting slide for printing
endSlide (integer) - the last slide for printing
outputType (integer) - the type of printout. The possible values are:
- Slides
- Handouts of 2 slides per page
- Handouts of 3 slides per page
- Handouts of 6 slides per page
- Notes pages
- Outline view
- Build slides
- Handouts of 4 slides per page
- Handouts of 9 slides per page
- Handouts of 1 slide per page
hasBorder (integer) - 1 to show a border for each printout, any other integer value to hide the border
colorType (integer) - the types of color
- For Color printouts.
- Black and white printouts
Returns:
(integer) - The success code
Example:
-- asks a user to select a PowerPoint file
-- then creates a print job to print all the slides in the PowerPoint file with notes view in color.
strPPTfile = xtRose.dlgFile( 2, the moviePath, "untitled.ppt", "Microsoft PowerPoint File (*.ppt)|*.ppt|Microsoft PowerPoint Template (*.pot)|*.pot", "ppt" )
xtRose = xtra("Rosetta").new( )
xtRose.pptLaunch( )
xtRose.pptOpen( strPPTfile )
xtRose.pptPrint( EMPTY, 1, xtRose.pptCount(), 5, 1, 2 )
xtRose.pptClose( )
xtRose.pptQuit( )
Notes:
To print with PowerPoint viewer, use Rosetta's sysExecute( ) function.