abort

abort() updating;

The abort method of the Printer class closes the printer or the print preview file and discards all of the generated output.

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 abort method.

if abortPrint.value then
    app.printer.abort;
else
    app.printer.close;
endif;