Saves a document in its original format to its original location. If original format and location are not specified, invokes the Save As dialog that is shown modally as a child of the specified parent window.
public virtual bool SaveDocument( IWin32Window parent )
Public Overridable Function SaveDocument( parent As IWin32Window ) As Boolean
The IWin32Window that is the parent window.
true if a document has been successfully saved; otherwise, false.
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.