.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
A newer version of this page is available. Switch to the current version.

Document.SaveDocument Method

Name Parameters Description
SaveDocument(Stream, DocumentFormat) stream, format Saves the document to a stream, specifying the document’s format.
SaveDocument(Stream, DocumentFormat, EncryptionSettings) stream, 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.
SaveDocument(String, DocumentFormat, EncryptionSettings) fileName, format, encryptionSettings Saves the document to a stream, specifying the document’s format and encryption options.