Back to Devexpress

ISpreadsheetComponent.SaveDocument(DocumentFormat, EncryptionSettings) Method

officefileapi-devexpress-dot-spreadsheet-dot-ispreadsheetcomponent-dot-savedocument-x28-devexpress-dot-spreadsheet-dot-documentformat-devexpress-dot-spreadsheet-dot-encryptionsettings-x29.md

latest1.9 KB
Original Source

ISpreadsheetComponent.SaveDocument(DocumentFormat, EncryptionSettings) Method

Saves a document to an array of bytes in the specified format with the specified encryption settings.

Namespace : DevExpress.Spreadsheet

Assembly : DevExpress.Spreadsheet.v25.2.Core.dll

NuGet Package : DevExpress.Spreadsheet.Core

Declaration

csharp
byte[] SaveDocument(
    DocumentFormat format,
    EncryptionSettings encryptionSettings
)
vb
Function SaveDocument(
    format As DocumentFormat,
    encryptionSettings As EncryptionSettings
) As Byte()

Parameters

NameTypeDescription
formatDocumentFormat

A DocumentFormat enumeration member specifying the format of the document to be saved.

| | encryptionSettings | EncryptionSettings |

Document encryption options.

|

Returns

TypeDescription
Byte[]

An array of bytes containing document data in the specified format.

|

See Also

ISpreadsheetComponent Interface

ISpreadsheetComponent Members

DevExpress.Spreadsheet Namespace