corelibraries-devexpress-dot-xtraprinting-dot-xlsxexportoptionsex-45ef9d80.md
Gets or sets the export type - WYSIWYG or Data Aware.
Namespace : DevExpress.XtraPrinting
Assembly : DevExpress.Printing.v25.2.Core.dll
NuGet Package : DevExpress.Printing.Core
[DefaultValue(ExportType.DataAware)]
public ExportType ExportType { get; set; }
<DefaultValue(ExportType.DataAware)>
Public Property ExportType As ExportType
| Type | Default | Description |
|---|---|---|
| ExportType | DataAware |
The ExportType enumeration member.
|
Available values:
| Name | Description |
|---|---|
| Default |
The default export mode.
For the ExportSettings.DefaultExportType property, the Default value is equivalent to the DataAware value.
If the XlsxExportOptionsEx.ExportType, XlsExportOptionsEx.ExportType or CsvExportOptionsEx.ExportType property is set to Default , the actual export mode is specified by the ExportSettings.DefaultExportType property.
| | DataAware |
Export type that uses a new data export engine that features improved performance and memory usage. When exporting to XLS and XLSX formats, specific data-shaping options (e.g., summaries, filtering, sorting, data groups and lookup values) of a source control are retained in the export output. When exporting to CSV format, the control’s data shaping options are not included in the export document, which simplifies subsequent analysis and processing of text data.
The layout of control elements may not be retained in the export document. Other limitations also apply.
Not all controls support the DataAware export mode.
| | WYSIWYG |
Export type that uses the export engine of the XtraPrinting library. When exporting to XLS and XLSX formats, the layout of control elements is retained in the export document; specific data shaping options are not retained, compared to the DataAware export mode.
|
The ExportType property value matches the value of the static ExportSettings.DefaultExportType property. You can use the ExportType property to choose another export type. Refer to the ExportSettings.DefaultExportType property description for more information.
The following code snippets (auto-collected from DevExpress Examples) contain references to the ExportType property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
asp-net-mvc-grid-export-colored-grid-in-wysiwyg-mode/CS/Controllers/HomeController.cs#L23
XlsxExportOptionsEx exportOptions = new XlsxExportOptionsEx();
exportOptions.ExportType = DevExpress.Export.ExportType.WYSIWYG;
return GridViewExtension.ExportToXlsx(GridViewHelper.ExportGridViewSettings, MyModel.GetProducts(), exportOptions);
mvc-pivot-grid-custom-export/CS/MVCxPivotGrid_CustomExport/Controllers/HomeController.cs#L30
PivotXlsxExportOptions options = new PivotXlsxExportOptions();
options.ExportType = DevExpress.Export.ExportType.WYSIWYG;
return PivotGridExtension.ExportToXlsx(PivotGridHelper.Settings, Models.NwindModel.GetData(), options);
asp-net-mvc-grid-export-colored-grid-in-wysiwyg-mode/VB/Controllers/HomeController.vb#L25
Dim exportOptions As New XlsxExportOptionsEx()
exportOptions.ExportType = DevExpress.Export.ExportType.WYSIWYG
Return GridViewExtension.ExportToXlsx(GridViewHelper.ExportGridViewSettings, MyModel.GetProducts(), exportOptions)
See Also