Back to Devexpress

SpreadsheetControl.SaveDocument(DocumentFormat, EncryptionSettings) Method

wpf-devexpress-dot-xpf-dot-spreadsheet-dot-spreadsheetcontrol-dot-savedocument-x28-devexpress-dot-spreadsheet-dot-documentformat-devexpress-dot-spreadsheet-dot-encryptionsettings-x29.md

latest2.0 KB
Original Source

SpreadsheetControl.SaveDocument(DocumentFormat, EncryptionSettings) Method

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

Namespace : DevExpress.Xpf.Spreadsheet

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

NuGet Package : DevExpress.Wpf.Spreadsheet

Declaration

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

Parameters

NameTypeDescription
formatDocumentFormat

The format of the document to be saved.

| | encryptionSettings | EncryptionSettings |

Document encryption settings.

|

Returns

TypeDescription
Byte[]

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

|

Remarks

The SaveDocument method can be used to store a workbook in an external database.

See Also

How to: Save a Spreadsheet Document

SpreadsheetControl Class

SpreadsheetControl Members

DevExpress.Xpf.Spreadsheet Namespace