Send (Printjob.send Method) - MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE Reference

Actionscript 2.0 language reference
Table of Contents

Advertisement

// 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();
}
}
// 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
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)
(PrintJob.start method)

send (PrintJob.send method)

public send() : Void
Used following the
PrintJob.start()
pages to the printer. Because calls to
and
PrintJob.start()
PrintJob.addpage()
:
PrintJob.send()
1026
ActionScript classes
// print page(s)
new PrintJob()
.
,
and
PrintJob.send()
PrintJob.addpage()
and
PrintJob.start()
) while the first PrintJob object is still
send (PrintJob.send method)
PrintJob.addPage()
will not be successful if related calls to
failed, you should check that calls to
were successful before calling
,
start
methods to send spooled

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash 8

Table of Contents