SpreadsheetGear 2023
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.
Syntax
'Declaration
 
Overloads Function Open( _
   ByVal filename As System.String, _
   ByVal password As System.String _
) As IWorkbook
'Usage
 
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
)

Parameters

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

Return Value

The opened workbook.
Remarks
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.
Requirements

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

Reference

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