'Declaration Public Event ExportStarted As EventHandler(Of ExportStartedEventArgs)
public event EventHandler<ExportStartedEventArgs> ExportStarted
The event handler receives an argument of type ExportStartedEventArgs containing data related to this event. The following ExportStartedEventArgs properties provide information specific to this event.
Property | Description |
---|---|
CurrentColumnIndex (Inherited from Infragistics.Windows.DataPresenter.ExcelExporter.ExcelExportEventArgs) | Zero-based index of current exporting column in excel worksheet. |
CurrentOutlineLevel (Inherited from Infragistics.Windows.DataPresenter.ExcelExporter.ExcelExportEventArgs) | Current outline level used for grouping. |
CurrentRowIndex (Inherited from Infragistics.Windows.DataPresenter.ExcelExporter.ExcelExportEventArgs) | Zero-based index of current exporting row in excel worksheet. |
CurrentWorksheet (Inherited from Infragistics.Windows.DataPresenter.ExcelExporter.ExcelExportEventArgs) | Current exporting worksheet. |
DataPresenter | Returns a clone of the DataPresenter that is about to be exported. |
Workbook (Inherited from Infragistics.Windows.DataPresenter.ExcelExporter.ExcelExportEventArgs) | Exporting workbook. |
The DataPresenter argument returns a reference to the cloned object that is about to be exported.
Additionaly this event has Workbook, CurrentWorksheet, CurrentRowIndex, CurrentColumnIndex, CurrentOutlineLevel arguments inherited from ExcelExportEventArgs.
This event is fired before all other events. You can use it to do any preprocessing before exporting process starts, such as writing a custom header to the Excel workbook.
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