CustomExportEventArgs.ExportOptions Property
Specifies the export options to be applied when data is exported.
Namespace: DevExpress.ExpressApp.SystemModule
Assembly: DevExpress.ExpressApp.v24.2.dll
NuGet Package: DevExpress.ExpressApp
Declaration
Property Value
Type | Description |
---|---|
ExportOptionsBase | An ExportOptionsBase object which specifies the export options to be applied when data is exported. |
Remarks
When handling the ExportController.CustomExport event, use the ExportOptions parameter to customize the options that will be applied when the data is exported. Cast the object returned by this property to one of the following types in dependence on the value returned by the CustomExportEventArgs.ExportTarget parameter:
ExportTarget | Export Options |
---|---|
ExportTarget.Xls | XlsExportOptions |
ExportTarget.Xlsx | XlsxExportOptions |
ExportTarget.Html | HtmlExportOptions |
ExportTarget.Mht | MhtExportOptions |
ExportTarget.Pdf | PdfExportOptions |
ExportTarget.Text | TextExportOptions |
ExportTarget.Rtf | RtfExportOptions |
ExportTarget.Csv | CsvExportOptions |
ExportTarget.Image | ImageExportOptions |
You can also cast ExportOptions to IDataAwareExportOptions to switch from DataAware to WYSIWYG export type (see ExportType). For details, refer to the IDataAwareExportable topic.