XlExportOptionsBase.EncryptionOptions Property

Provides access to the XLS and XLSX file encryption options.

Namespace: DevExpress.XtraPrinting

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

Declaration

public XlEncryptionOptions EncryptionOptions { get; }

Property Value

Type Description
XlEncryptionOptions

An XlEncryptionOptions object.

Property Paths

You can access this nested property as listed below:

Library Object Type Path to EncryptionOptions
Cross-Platform Class Library ExportOptions
.Xls.EncryptionOptions
WPF Controls ExportOptionsContainer
.Xls.EncryptionOptions

Remarks

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.

Important

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