Exports a report to the specified file path in XLSX format.
A String value, specifying the file name (including the full path) for the created XLSX file.
This method overwrites any files present at the specified path that have the same file name without any warnings.
Once the document export has started, it will run until the resulting document is complete and cannot be interrupted or canceled in the process.
The following two modes of Excel export are available.
This export mode is optimized for subsequent data analysis within Microsoft Excel. Various data shaping options that are applied within the control are retained in the output XLS-XLSX documents (such as native Excel grouping, sorting and filtering settings, as well as improved support for Excel formulas).
With this export mode, the layout of a control’s cells is retained in the resulting Excel documents while specific data shaping options may not be retained.
This is the only export method that is supported by the LinkBase class.
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the ExportToXlsx(String) method.
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.