.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+

WorkbookImportOptions.Password Property

Gets or sets a password used to unprotect a password-protected document during import.

Namespace: DevExpress.XtraSpreadsheet.Import

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

Declaration

public string Password { get; set; }
Public Property Password As String
public string Password { get; set; }
Public Property Password As String
public string Password { get; set; }
Public Property Password As String

Property Value

Type Description
String

A string value that specifies the password.

Property Value

Type Description
String

A string value that specifies the password.

Property Value

Type Description
String

A string value that specifies the password.

Remarks

The Password property specifies a password for opening a password-encrypted document.

Examples

The code snippet below demonstrates how to use the WorkbookImportOptions.Password property.

spreadsheetControl1.Options.Import.Password = "123";
spreadsheetControl1.LoadDocument(documentName);
See Also