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

Document.SaveDocument Method

Name Parameters Description
SaveDocument(DocumentFormat, EncryptionSettings) format, encryptionSettings Saves the document to a byte array in the specified file format and encrypts it with a password.
SaveDocument(DocumentFormat) format Saves the document to a byte array in the specified file format.
SaveDocument(Stream, DocumentFormat, EncryptionSettings) stream, format, encryptionSettings Saves the document to a stream, specifying the document’s format and encryption options.
SaveDocument(Stream, DocumentFormat) stream, format Saves the document to a stream, specifying the document’s format.
SaveDocument(String, DocumentFormat, EncryptionSettings) fileName, format, encryptionSettings Saves the document to a stream, specifying the document’s format and encryption options.
SaveDocument(String, DocumentFormat) fileName, format Saves the document to a file, specifying the document’s format.