A newer version of this page is available. Switch to the current version.

EncryptionOptions Class

Contains encryption options for a workbook.

Namespace: DevExpress.Office.Crypto

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

Declaration

public class EncryptionOptions
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.

Inheritance

Object
EncryptionOptions
See Also