Skip to main content
.NET 8.0+

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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

public ExportOptionsBase ExportOptions { get; set; }

#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.

See Also