Table of Contents

Event EndPrint

Namespace
Alternet.Drawing.Printing
Assembly
Alternet.UI.Common.dll

Occurs when the last page of the document has printed.

event EventHandler<CancelEventArgs>? EndPrint

Returns

EventHandler<CancelEventArgs>
Occurs when the last page of the document has printed.

Remarks

Typically, you handle the EndPrint event to release fonts, file streams, and other resources used during the printing process, like fonts.

You indicate that there are no more pages to print by setting the HasMorePages property to false in the PrintPage event. The EndPrint event also occurs if the printing process is canceled or an exception occurs during the printing process.