Skip to main content

XlEncryptionOptions.Type Property

Specifies the applied encryption mechanism.

Namespace: DevExpress.XtraPrinting

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

NuGet Package: DevExpress.Printing.Core

Declaration

[DefaultValue(XlEncryptionType.Strong)]
public XlEncryptionType Type { get; set; }

Property Value

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.

Property Paths

You can access this nested property as listed below:

Library Object Type Path to Type
Cross-Platform Class Library XlExportOptionsBase
Blazor GridXlExportOptions

Remarks

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