Back to Devexpress

XlExportOptionsBase.EncryptionOptions Property

corelibraries-devexpress-dot-xtraprinting-dot-xlexportoptionsbase-7f644093.md

latest2.4 KB
Original Source

XlExportOptionsBase.EncryptionOptions Property

Provides access to the XLS and XLSX file encryption options.

Namespace : DevExpress.XtraPrinting

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

NuGet Package : DevExpress.Printing.Core

Declaration

csharp
public XlEncryptionOptions EncryptionOptions { get; }
vb
Public ReadOnly Property EncryptionOptions As XlEncryptionOptions

Property Value

TypeDescription
XlEncryptionOptions

An XlEncryptionOptions object.

|

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

XlExportOptionsBase Class

XlExportOptionsBase Members

DevExpress.XtraPrinting Namespace