XlEncryptionOptions.Type Property

Specifies the applied encryption mechanism.

Namespace: DevExpress.XtraPrinting

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

Declaration

[DefaultValue(XlEncryptionType.Strong)]
public XlEncryptionType Type { get; set; }
<DefaultValue(XlEncryptionType.Strong)>
Public Property Type As XlEncryptionType

Property Value

Type Default Description
XlEncryptionType

Strong

An XlEncryptionType enumeration value, specifying the encryption mechanism.

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