Previous - pptSlideShowGo Section Home - Microsoft PowerPoint Next - pptErr


pptPrint ( )

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:

  1. Slides
  2. Handouts of 2 slides per page
  3. Handouts of 3 slides per page
  4. Handouts of 6 slides per page
  5. Notes pages
  6. Outline view
  7. Build slides
  8. Handouts of 4 slides per page
  9. Handouts of 9 slides per page
  10. 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

  1. For Color printouts.
  2. 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.


Previous - pptSlideShowGo Section Home - Microsoft PowerPoint Next - pptErr