User Guide

PrintJob 1027
var my_pj:PrintJob = new PrintJob();
if (my_pj.start()) {
if (my_pj.addPage(this)) {
my_pj.send();
}
}
delete my_pj;
Availability: ActionScript 1.0; Flash Player 7
Example
See
PrintJob.addPage() and PrintJob.start().
See also
addPage (PrintJob.addPage method), start (PrintJob.start method)
start (PrintJob.start method)
public start() : Boolean
Displays the operating system's print dialog boxes and starts spooling. The print dialog boxes
let the user change print settings. When the
PrintJob.start() method returns successfully,
the following read-only properties are populated, representing the user's print settings:
After the user clicks OK in the Print dialog box, the player begins spooling a print job to the
operating system. You should issue any ActionScript commands that affect the printout, and
you can use
PrintJob.addPage() commands to send pages to the spooler. You can use the
read-only height, width, and orientation properties this method populates to format the
printout.
Property Type Units Notes
PrintJob.paperHeight Number Points Overall paper height.
PrintJob.paperWidth Number Points Overall paper width.
PrintJob.pageHeight Number Points Height of actual printable
area on the page; any
user-set margins are
ignored.
PrintJob.pageWidth Number Points Width of actual printable
area on the page; any
user-set margins are
ignored.
PrintJob.orientation Number Points "Portrait" or "landscape."