Version

OnPrintPage Method

Used to invoke the PrintPage event when a page is to be printed.
Syntax
'Declaration
 
Protected Overrides Sub OnPrintPage( _
   ByVal e As PrintPageEventArgs _
) 
protected override void OnPrintPage( 
   PrintPageEventArgs e
)

Parameters

e
Event arguments
Remarks

The UltraPrintDocument overrides this member to invoke the various print events (e.g. PagePrinting, PageHeaderPrinting, etc.). It is recommended that derived classes override the methods of the respective event(s) (e.g. OnPagePrinting) instead of overriding OnPrintPage. After the header and footer area, as well as any additional page Padding or Margins have been removed the OnPrintPageBody method is invoked with a new System.Drawing.Printing.PrintPageEventArgs that represents the body area of the page. Derived classes may override that method in lieu of overriding OnPrintPage to handle rendering of the page body.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also