PrintControllerWithStatusDialog.OnEndPrint Method
Assembly: System.Windows.Forms (in system.windows.forms.dll)
public void OnEndPrint ( PrintDocument document, PrintEventArgs e )
public override function OnEndPrint ( document : PrintDocument, e : PrintEventArgs )
Parameters
- document
A PrintDocument that represents the document currently being printed.
- e
A PrintPageEventArgs that contains the event data.
The PrintControllerWithStatusDialog class calls the PrintController.OnEndPrint method on the encapsulated PrintController.
The OnEndPrint method is called immediately after the PrintDocument raises the EndPrint event.
The OnStartPrint method creates the Graphics object that is sent to the printer. After OnStartPrint is called, the OnStartPage method sets the Graphics object to a graphic of a single page. (Use OnStartPrint to determine when and how to print a document. For example, you can delay printing for 30 minutes or adjust the printer settings for the document.) The OnEndPage method clears the Graphics object, while OnEndPrint deallocates the object.
Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.