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.Xpf.Spreadsheet

Assembly: DevExpress.Xpf.Spreadsheet.v20.1.dll


public void SaveDocument(
    string fileName
Public Sub SaveDocument(
    fileName As String


Name Type Description
fileName String

Specifies the file path to save the document to.


The DocumentFormat enumeration lists the supported document formats. To export a file to PDF or HTML, use the SpreadsheetControl.ExportToPdf and SpreadsheetControl.ExportToHtml methods.

See Also