FlexGrid for WinForms
PrintPage Event



Fires after the grid finishes printing a page.
Syntax
'Declaration
 
<C1DescriptionAttribute("Fires after the grid finishes printing a page.")>
Public Event PrintPage As PrintPageEventHandler
'Usage
 
Dim instance As C1FlexGridBase
Dim handler As PrintPageEventHandler
 
AddHandler instance.PrintPage, handler
[C1Description("Fires after the grid finishes printing a page.")]
public event PrintPageEventHandler PrintPage
[C1Description("Fires after the grid finishes printing a page.")]
public:
event PrintPageEventHandler^ PrintPage
Event Data

The event handler receives an argument of type PrintPageEventArgs containing data related to this event. The following PrintPageEventArgs properties provide information specific to this event.

PropertyDescription
CancelGets or sets a value indicating whether the print job should be canceled.  
GraphicsGets the System.Drawing.Graphics used to paint the page.  
HasMorePagesGets or sets a value indicating whether an additional page should be printed.  
MarginBoundsGets the rectangular area that represents the portion of the page inside the margins.  
PageBoundsGets the rectangular area that represents the total area of the page.  
PageSettingsGets the page settings for the current page.  
Remarks

This event is typically used to provide feedback while printing the grid, and to offer the user a cancel button that can be used to stop the printing process. You can also use this event to add custom elements to the printed pages.

Use the PrintGrid(String,PrintGridFlags) method to print the grid and specify the document name, common printing options, headers and footers.

Use the PrintParameters property to specify less common printing options such as header and footer fonts, page margins, orientation, and so on.

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

C1FlexGridBase Class
C1FlexGridBase Members

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Send Feedback