'Declaration
Public Event PrintPage As System.EventHandler(Of PrintPageEventArgs)
'Usage
Dim instance As WorkbookPrintDocument Dim handler As System.EventHandler(Of PrintPageEventArgs) AddHandler instance.PrintPage, handler
public event System.EventHandler<PrintPageEventArgs> PrintPage
public event PrintPage: System.EventHandler;
In JScript, you can handle the events defined by another class, but you cannot define your own.
public: __event System.EventHandler<PrintPageEventArgs*>* PrintPage
public: event System.EventHandler<PrintPageEventArgs^>^ PrintPage
The event handler receives an argument of type System.Windows.Printing.PrintPageEventArgs containing data related to this event. The following PrintPageEventArgs properties provide information specific to this event.
Property | Description |
---|---|
HasMorePages | Gets or sets whether there are more pages to print. |
PageMargins | Gets the margins of the page that is currently printing. |
PageVisual | Gets or sets the visual element to print. |
PrintableArea | Gets the size of the printable area. |
Target Platforms: 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