User Guide
1026 ActionScript classes
// add specified area to print job
// repeat once for each page to be printed
if (my_pj.addPage([params])) {
pagesToPrint++;
}
if (my_pj.addPage([params])) {
pagesToPrint++;
}
if (my_pj.addPage([params])) {
pagesToPrint++;
}
// send pages from the spooler to the printer, but only if one or more
// calls to addPage() was successful. You should always check for
successful
// calls to start() and addPage() before calling send().
if (pagesToPrint > 0) {
my_pj.send(); // print page(s)
}
}
// clean up
delete my_pj; // delete object
You cannot create a second PrintJob object while the first one is still active. You cannot create
a second PrintJob object (by calling
new PrintJob()) while the first PrintJob object is still
active, the second PrintJob object will not be created.
Availability: ActionScript 1.0; Flash Player 7
Example
See
PrintJob.addPage().
See also
addPage (PrintJob.addPage method), send (PrintJob.send method), start
(PrintJob.start method)
send (PrintJob.send method)
public send() : Void
Used following the PrintJob.start() and PrintJob.addPage() methods to send spooled
pages to the printer. Because calls to
PrintJob.send() will not be successful if related calls to
PrintJob.start() and PrintJob.addpage() failed, you should check that calls to
PrintJob.addpage() and PrintJob.start() were successful before calling
PrintJob.send():