'Declaration Public Event HeaderAreaExporting As EventHandler(Of HeaderAreaExportingEventArgs)
public event EventHandler<HeaderAreaExportingEventArgs> HeaderAreaExporting
The event handler receives an argument of type HeaderAreaExportingEventArgs containing data related to this event. The following HeaderAreaExportingEventArgs properties provide information specific to this event.
The FieldLayout argument returns a reference the layout object associated with the headers.
The Record argument returns a reference to the first record associated with the headers.
Additionaly this event has Cancel, Workbook, CurrentWorksheet, CurrentRowIndex, CurrentColumnIndex, CurrentOutlineLevel arguments inherited from ExcelExportCancelEventArgs.
This event is fired before Excel row with header values is processed. Use Cancel argument to cancel row exporting. If headers span multiple Excel rows, this event is fired only for first header row.
This event is not fired when the labels are displayed with the cells instead of in a separate header area.
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, 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