Skip to main content

XlExportOptionsBase.EncryptionOptions Property

Provides access to the XLS and XLSX file encryption options.

Namespace: DevExpress.XtraPrinting

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

NuGet Packages: DevExpress.Printing.Core, DevExpress.Win.Dashboard.Design


public XlEncryptionOptions EncryptionOptions { get; }

Property Value

Type Description

An XlEncryptionOptions object.


XLS files support only ARC4 encryption (except for RC4CryptoAPI) and the XlEncryptionOptions.Type property is only applicable to XLSX files. To learn more, see the following topic in MSDN: Office Document Cryptography Structure.


Excel passwords are saved with report definitions in clear text. Please make sure that only trusted parties have access to report definition files.

To apply encryption, the XlEncryptionOptions.Password property must be specified (the default empty string cannot be used for file encryption).

See Also