Occurs when header or footer needs printing.
Syntax
Event Data
The event handler receives an argument of type PrintHeaderFooterAreaEventArgs containing data related to this event. The following PrintHeaderFooterAreaEventArgs properties provide information specific to this event.
Property | Description |
---|
Cancel | Gets or sets the cancel flag. |
Cells | Returns the range of cells being printed. |
Graphics | Gets or sets the graphics device that does the printing. |
IsHeader | Gets whether we are printing the header or footer. |
PageNumber | Gets or sets the current page being printed. |
Rectangle | Gets or sets the rectangle area representing the sheet. |
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