Skip to main content
A newer version of this page is available. .

EncryptionOptions Class

Contains encryption options for a workbook.

Namespace: DevExpress.Office.Crypto

Assembly: DevExpress.Printing.v18.1.Core.dll

Declaration

public class EncryptionOptions

Remarks

To encrypt a document, create an instance of the EncryptionOptions class and pass it as a parameter to the IXlExporter.CreateDocument method. For an example, refer to the How to: Password Protect a Workbook topic.

The EncryptionOptions.Type property allows you to specify the encryption mechanism for XLSX files. By default, the agile encryption is used. XLS files support only RC4 encryption.

To specify an encryption password, use the EncryptionOptions.Password property.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the EncryptionOptions class.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

Inheritance

Object
EncryptionOptions
See Also