Skip to main content
All docs
V24.1
Tab

ASPxGridView.ExportXlsxToResponse(XlsxExportOptionsEx) Method

Exports the control’s data in XLSX format with the specified export settings, and writes it to the response in binary format.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.1.dll

NuGet Package: DevExpress.Web

Declaration

public void ExportXlsxToResponse(
    XlsxExportOptionsEx exportOptions
)

Parameters

Name Type Description
exportOptions XlsxExportOptionsEx

The export options.

Remarks

This method writes files to the response and do not write them to a storage (for example, a file system).

ASPxGridView1.ExportXlsxToResponse(new XlsxExportOptionsEx { ExportType = ExportType.WYSIWYG });

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ExportXlsxToResponse(XlsxExportOptionsEx) method.

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.

See Also