SpreadsheetControl.SaveDocument(String, DocumentFormat) Method

Saves the control’s document to a file, specifying the document format.

Namespace: DevExpress.XtraSpreadsheet

Assembly: DevExpress.XtraSpreadsheet.v21.2.dll


public void SaveDocument(
    string fileName,
    DocumentFormat format


Name Type Description
fileName String

A string value specifying the path to a file in which to save the control’s document.

format DocumentFormat

One of the DocumentFormat enumeration values.


Use the SpreadsheetControl.Options.Export property that returns the WorkbookExportOptions object to set global export options, or handle the SpreadsheetControl.BeforeExport event to specify options for an individual export action.

See Also