Control Reference > VSPrinter Control > VSPrinter Methods > EndDoc Method |
Ends the current document (created with the StartDoc method).
[form!]VSPrinter.EndDoc
The EndDoc method finishes the current document. If the Preview property is set to True, the document remains on the control and can be previewed, saved or printed. If Preview is set to False, the document is sent to the printer.
To cancel the current document, use the KillDoc method instead of EndDoc. KillDoc will clear the control's contents and cancel the printing job if it has started.