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

SpreadsheetControl.SaveDocument() Method

Saves a document in its original format to its original location.

Namespace: DevExpress.XtraSpreadsheet

Assembly: DevExpress.XtraSpreadsheet.v19.1.dll

Declaration

public virtual bool SaveDocument()

Returns

Type Description
Boolean

true, if a document has been successfully saved; otherwise, false.

Remarks

Use the SaveDocument method to save changes while editing the document.

The original format is determined by the WorkbookSaveOptions.CurrentFormat property. The original location is determined by the WorkbookSaveOptions.CurrentFileName property. For the newly created document or a document loaded from a stream, the SpreadsheetControl.SaveDocumentAs method is called.

See Also