SpreadsheetGear 2012
QueryPageSettings Event (WorkbookPrintDocument)






Syntax
'Declaration
 
<SRDescriptionAttribute("Occurs before each page is printed.  Useful for changing PageSettings for a particular page.")>
Public Event QueryPageSettings As System.Drawing.Printing.QueryPageSettingsEventHandler
'Usage
 
Dim instance As WorkbookPrintDocument
Dim handler As System.Drawing.Printing.QueryPageSettingsEventHandler
 
AddHandler instance.QueryPageSettings, handler
[SRDescription("Occurs before each page is printed.  Useful for changing PageSettings for a particular page.")]
public event System.Drawing.Printing.QueryPageSettingsEventHandler QueryPageSettings
public event QueryPageSettings: System.Drawing.Printing.QueryPageSettingsEventHandler; 
In JScript, you can handle the events defined by another class, but you cannot define your own.
[SRDescription("Occurs before each page is printed.  Useful for changing PageSettings for a particular page.")]
public: __event System.Drawing.Printing.QueryPageSettingsEventHandler* QueryPageSettings
[SRDescription("Occurs before each page is printed.  Useful for changing PageSettings for a particular page.")]
public:
event System.Drawing.Printing.QueryPageSettingsEventHandler^ QueryPageSettings
Event Data

The event handler receives an argument of type System.Drawing.Printing.QueryPageSettingsEventArgs containing data related to this event. The following QueryPageSettingsEventArgs properties provide information specific to this event.

PropertyDescription
Cancel (Inherited from System.ComponentModel.CancelEventArgs)
PageSettingsGets or sets the page settings for the page to be printed.  
PrintAction (Inherited from System.Drawing.Printing.PrintEventArgs)
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