corelibraries-devexpress-dot-xtraprinting-dot-xlencryptionoptions-d5fbc769.md
Specifies the applied encryption mechanism.
Namespace : DevExpress.XtraPrinting
Assembly : DevExpress.Printing.v25.2.Core.dll
NuGet Package : DevExpress.Printing.Core
[DefaultValue(XlEncryptionType.Strong)]
public XlEncryptionType Type { get; set; }
<DefaultValue(XlEncryptionType.Strong)>
Public Property Type As XlEncryptionType
| Type | Default | Description |
|---|---|---|
| XlEncryptionType | Strong |
An XlEncryptionType enumeration value, specifying the encryption mechanism.
|
Available values:
| Name | Description |
|---|---|
| Compatible |
Applies the Standard Encryption mechanism that is compatible with Excel 2007.
| | Strong |
Applies the Agile Encryption mechanism.
|
You can access this nested property as listed below:
| Library | Object Type | Path to Type |
|---|---|---|
| Cross-Platform Class Library | XlExportOptionsBase |
.EncryptionOptions .Type
| | Blazor | GridXlExportOptions |
.EncryptionOptions .Type
| | TreeListXlExportOptions |
.EncryptionOptions .Type
|
The encryption types listed in the XlEncryptionType enumeration are only applicable to XLSX files.
XLS files support only RC4 encryption (except for RC4CryptoAPI ) and the Type property is ignored for such files.
To apply encryption, the XlEncryptionOptions.Password property must be specified (the default empty string cannot be used for file encryption).
See Also