Exports a report to the specified file path in XLS format.This method exports data in WYSIWYG mode. Certain controls (e.g., a GridControl) can be exported to XLS(XLSX) format in a faster data-aware export mode, optimized for subsequent analysis of data in MS Excel. To learn how to employ data-aware export, see Export to XLS and XLSX Formats.
public void ExportToXls( Stream stream, XlsExportOptions options )
Public Sub ExportToXls( stream As Stream, options As XlsExportOptions )
A Stream object to which the created XLS file should be sent.
A XlsExportOptions object which specifies the XLS export options to be applied when a report is exported.
Once the document export has started, it will run until the resulting document is complete and cannot be interrupted or canceled in the process.
Note that in this instance the current report export options, which are represented by the XlsExportOptions object returned by the ExportOptions.Xls property of a report's XtraReport.ExportOptions, are ignored.
If, instead, you want to use the current export options of a report, you should call the overloaded XtraReport.ExportToXls method without the options parameter.
To learn more, see Export to XLS.