[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.XlsxOpenOptions.Password

Password Property

Password

Gets or sets the password for the xlsx file.

Use this property to configure the password before opening a password-protected xlsx file.

Declaration
public string Password { get; set; }
Public Property Password As String
Examples
string configuredPassword = GetWorkbookPassword();
XlsxOpenOptions options = new XlsxOpenOptions();
options.Password = configuredPassword;
string password = options.Password;
workbook.Open("path/to/workbook.xlsx", options);