'Declaration Public Event ExportEnding As EventHandler(Of ExportEndingEventArgs)
public event EventHandler<ExportEndingEventArgs> ExportEnding
The event handler receives an argument of type ExportEndingEventArgs containing data related to this event. The following ExportEndingEventArgs properties provide information specific to this event.
Property | Description |
---|---|
Canceled | True if exporting process was canceled. |
CancelInfo | Returns an object that provides information about action that canceled the export. |
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. |
Workbook (Inherited from Infragistics.Windows.DataPresenter.ExcelExporter.ExcelExportEventArgs) | Exporting workbook. |
The ExportEnding event is invoked when the export process has completed to give the developer one final opportunity to manipulate the Workbook being generated. This is particularly important when using an overload of the Export method that takes a filename as the file will be saved after the ExportEnding is complete but before the ExportEnded so any changes to the Workbook in the ExportEnded will not be reflected in the saved file. Also, since the file will not have been created until after the ExportEnding, if you wanted to copy the file to another location or display the file to the end user, the ExportEnded event should be used to do that.
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