SpreadsheetGear 2017
PrintPage Event (WorkbookPrintDocument)






SpreadsheetGear.Windows.Printing Namespace > WorkbookPrintDocument Class : PrintPage Event
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
Gets or sets whether there are more pages to print.  
Gets the margins of the page that is currently printing.  
Gets or sets the visual element to print.  
Gets 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