EndDoc Method

Indicates the end of the document and causes one ore more PrintProgressEvent events to be fired.

C#

public void EndDoc();

Remarks

The events are fired in this order:

Notes

The event with the PrintProgressEventArgs.MessageTypes.COMPLETE message type is only fired if the document has been completely printed without errors or being canceled. If the application does not close the printer connection via the disconnect() method after this method call, the next command or data sent to the printer would trigger a PrintProgressEvent with a message type of PrintProgressEventArgs.MessageTypes.STARTDOC.