Method OnPrintPage
OnPrintPage(PrintPageEventArgs)
Raises the PrintPage event. It is called before a page prints.
protected virtual void OnPrintPage(PrintPageEventArgs e)
Parameters
e
PrintPageEventArgsA PrintPageEventArgs that contains the event data.
Remarks
The OnPrintPage(PrintPageEventArgs) method allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class.