SpreadsheetGear 2017
Open(String,String) Method

SpreadsheetGear Namespace > IWorkbooks Interface > Open Method : Open(String,String) Method
The filename of the workbook to open.
The password to use when opening the workbook.
Open an existing workbook in a newly created instance of IWorkbook.
Overloads Function Open( _
   ByVal filename As System.String, _
   ByVal password As System.String _
) As IWorkbook
Dim instance As IWorkbooks
Dim filename As System.String
Dim password As System.String
Dim value As IWorkbook
value = instance.Open(filename, password)
IWorkbook Open( 
   System.string filename,
   System.string password
function Open( 
    filename: System.String;
    password: System.String
): IWorkbook; 
function Open( 
   filename : System.String,
   password : System.String
) : IWorkbook;
IWorkbook* Open( 
   System.string* filename,
   System.string* password
IWorkbook^ Open( 
   System.String^ filename,
   System.String^ password


The filename of the workbook to open.
The password to use when opening the workbook.

Return Value

The opened workbook.
The various workbook settings which make a workbook read-only in an end user workbookSet have no affect at this level. These settings are available as IWorkbook properties.

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also


IWorkbooks Interface
IWorkbooks Members
Overload List
Open(String) Method
Save Method
SaveAs(String,FileFormat,String) Method
SaveToMemory(FileFormat,String) Method
SaveToStream(Stream,FileFormat,String) Method
OpenFromMemory(Byte[],String) Method
OpenFromStream(Stream,String) Method