Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

SpreadsheetControl.SaveDocument Method

Name Parameters Description
SaveDocument() none Saves a document in its original format to its original location.
SaveDocument(DocumentFormat, EncryptionSettings) format, encryptionSettings Saves a document to an array of bytes in the specified format and with specified encryption settings.
SaveDocument(DocumentFormat) format Saves a document to an array of bytes in the specified format.
SaveDocument(Stream, DocumentFormat, EncryptionSettings) stream, format, encryptionSettings Saves the workbook to a stream, specifying the export format and encryption options.
SaveDocument(Stream, DocumentFormat) stream, format Saves the workbook to a stream, specifying the export format.
SaveDocument(String, DocumentFormat, EncryptionSettings) fileName, format, encryptionSettings Saves the control’s document to a file, specifying the document format and encryption settings.
SaveDocument(String, DocumentFormat) fileName, format Saves the control’s document to a file, specifying the document format.
SaveDocument(String, EncryptionSettings) fileName, encryptionSettings Saves the document to a file with the specified encryption settings.
SaveDocument(String) fileName Saves the document to the specified file in the Excel or text format. The file format is identified by the file extension.
SaveDocument(IWin32Window) parent 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.