Spread WPF Documentation
Open(String,Int32,String) Method


GrapeCity.Excel Namespace > ExcelWorkbook Class > Open Method : Open(String,Int32,String) Method
The full path of the file
The index of the Worksheet which will be opened. if the value is -1, it will load all sheets
The password used to decrypt the file if the file was encrypted with a password
Open an existing file.
Syntax
'Declaration
 
Public Overloads Sub Open( _
   ByVal file As System.String, _
   Optional ByVal sheetIndex As System.Integer, _
   Optional ByVal password As System.String _
) 
'Usage
 
Dim instance As ExcelWorkbook
Dim file As System.String
Dim sheetIndex As System.Integer
Dim password As System.String
 
instance.Open(file, sheetIndex, password)
public void Open( 
   System.string file,
   System.int sheetIndex,
   System.string password
)

Parameters

file
The full path of the file
sheetIndex
The index of the Worksheet which will be opened. if the value is -1, it will load all sheets
password
The password used to decrypt the file if the file was encrypted with a password
See Also

Reference

ExcelWorkbook Class
ExcelWorkbook Members
Overload List