SpreadsheetGear 2012
PrintPage Event (WorkbookPrintDocument)






Syntax
'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
Event Data

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.

PropertyDescription
HasMorePagesGets or sets whether there are more pages to print.  
PageMarginsGets the margins of the page that is currently printing.  
PageVisualGets or sets the visual element to print.  
PrintableAreaGets the size of the printable area.  
Requirements

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

See Also

Reference

WorkbookPrintDocument Class
WorkbookPrintDocument Members

Send Feedback