SpreadsheetControl.SaveDocument(String) Method
Saves the document to the specified file in the Excel or text format. The file format is identified by the file extension.
Namespace: DevExpress.XtraSpreadsheet
Assembly: DevExpress.XtraSpreadsheet.v24.1.dll
NuGet Package: DevExpress.Win.Spreadsheet
Declaration
Parameters
Name | Type | Description |
---|---|---|
fileName | String | Specifies the file path to save the document to. |
Remarks
The DocumentFormat enumeration lists the supported document formats. To export a file to PDF or HTML, use the SpreadsheetControl.ExportToPdf and SpreadsheetControl.ExportToHtml methods.
Use the SpreadsheetControl.Options.Export property or handle the SpreadsheetControl.BeforeExport event to specify export options.
See Also