Skip to main content
A newer version of this page is available. .
Row

Workbook.SaveDocument(String) Method

Saves the document to the specified file. The file format is identified by the file extension.

You require a license to the DevExpress Office File API or DevExpress Universal Subscription to use this method in production code.

Namespace: DevExpress.Spreadsheet

Assembly: DevExpress.Docs.v18.2.dll

Declaration

public void SaveDocument(
    string fileName
)

Parameters

Name Type Description
fileName String

A string value specifying the path to a file into which to save the document.

Remarks

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

The following code snippets (auto-collected from DevExpress Examples) contain references to the SaveDocument(String) method.

Note

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.

See Also