Spread WPF 17
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


In This Topic
    Open(String,Int32,String) Method
    In This Topic
    Open an existing file.
    Syntax
    'Declaration
     
    Public Overloads Sub Open( _
       ByVal file As String, _
       Optional ByVal sheetIndex As Integer, _
       Optional ByVal password As String _
    ) 
    'Usage
     
    Dim instance As ExcelWorkbook
    Dim file As String
    Dim sheetIndex As Integer
    Dim password As String
     
    instance.Open(file, sheetIndex, password)
    public void Open( 
       string file,
       int sheetIndex,
       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