Back to Devexpress

SpreadsheetControl.SaveDocument() Method

windowsforms-devexpress-dot-xtraspreadsheet-dot-spreadsheetcontrol-72fe082a.md

latest2.2 KB
Original Source

SpreadsheetControl.SaveDocument() Method

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

Namespace : DevExpress.XtraSpreadsheet

Assembly : DevExpress.XtraSpreadsheet.v25.2.dll

NuGet Package : DevExpress.Win.Spreadsheet

Declaration

csharp
public virtual bool SaveDocument()
vb
Public Overridable Function SaveDocument As Boolean

Returns

TypeDescription
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

CurrentFormat

CurrentFileName

SaveDocumentAs

How to: Save a Document to a File

SpreadsheetControl Class

SpreadsheetControl Members

DevExpress.XtraSpreadsheet Namespace