ExpertXls Excel Library for .NET
OpenWorkbookPassword Property
Namespaces ► ExpertXls.ExcelLib ► ExcelDocumentSecurity ► OpenWorkbookPassword
ExpertXls Excel Library for .NET
Gets or sets the password that must be supplied to open the workbook when opening a workbook or to password protect the workbook when saving a workbook. Password protection works only with Excel 2003 .xls format. To remove password protection for an existing workbook a valid open password must be supplied when opening the workbook and then the OpenPassword property must be set to null before saving the workbook to prevent protecting again the saved document.
Declaration Syntax

C# | Visual Basic | Visual C++

    public string OpenWorkbookPassword { get; set; }

    Public Property OpenWorkbookPassword As String

    public:
    property String^ OpenWorkbookPassword {
    	String^ get ();
    	void set (String^ value);
    }

Assembly: ExpertXls.ExcelLib (Module: ExpertXls.ExcelLib) Version: 2.1.0.0 (2.1.0.0)