The Printer class is a transient-only class that handles printing. A transient instance of the Printer class called
Client-side facilities only are available. Print facilities cannot be invoked from a server method.
You can create additional transient instances of the Printer class if you want to output to multiple printers or create multiple print tasks simultaneously.
If you are running JADE in thin client mode, the printing is performed on the presentation client using a printer attached to the presentation client workstation. (For details about optimizing performance when previewing print output in JADE thin client mode, see "Previewing Print Output", later in this section.)
The default printer is re-evaluated every time a new print task is initiated and JADE logic has not specifically set the printer name required. If logic sets a specific printer name (even if is the default printer), that printer continues to be used, regardless of any change to the default printer.
The following example shows the use of the setPrinter method to return to printing with the default printer.
vars prnt : String; begin prnt := ""; app.printer.setPrinter(prnt); end;
For details about the Printer class constants, the properties and methods defined in the Printer class, defining report layouts, using the Print Progress dialog, free-format printing, and previewing print output, see the following sections.
Refer also to "
When you use the
An exception is raised if a printing operation (for example, calling the setPrinter method to set the output printer) is invoked from any of the following.
A
A server application running under the jadrap.exe JADE Remote Node Access utility (because printing requires the jade.exe program).
(None)