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

SpreadsheetControl.SaveDocument Method

Name Parameters Description
SaveDocument() none Saves a document to the original file location, and for a new document, the method invokes the Save As modal dialog box.
SaveDocument(DocumentFormat) format Saves a document to an array of bytes in the specified format.
SaveDocument(Stream, DocumentFormat) stream, format Saves the workbook to a stream, specifying the export format.
SaveDocument(String, DocumentFormat) fileName, format Saves the control’s document to a file, specifying the document’s format.
SaveDocument(String) fileName Saves the document to the specified file. The file format is identified by the file extension.
SaveDocument(IWin32Window) parent Saves a document to the original file location. For a new document, the method invokes the Save As modal dialog box with the specified owner.