close(): Integer updating;
The close method of the Printer class sends all buffered output to the printer or the preview file. (The preview file becomes available for browsing at this point.) A
An exception is raised if this method is invoked from a server method.
The code fragment in the following example shows the use of the close method.
app.printer.print(lett.heading);
printLetterText(app.printer, lett);
// The close method sends all buffered output to the preview file.
// The preview file becomes available for browsing at this point.
app.printer.close;
epilog
delete lett; // Deletes the transient form instance
end;
The destructor invokes the close method when you delete a printer object.
By default, all property values are re-initialized to the JADE default values when the printer is closed. For details about retaining property values when the printer is closed, see the Printer class retainCMDValues property.