Spread WPF 17
GrapeCity.Windows.SpreadSheet.UI Namespace / GcSpreadSheet Class / OpenExcel Method / OpenExcel(String,String,Int32) Method
The path to load the file from.
The password used to open the file.
The index of the sheet in Excel file.


In This Topic
    OpenExcel(String,String,Int32) Method
    In This Topic
    Opens an Excel Compound Document File and loads it into GcSpreadSheet.
    Syntax
    'Declaration
     
    Public Overloads Sub OpenExcel( _
       ByVal file As String, _
       ByVal password As String, _
       ByVal sheetIndex As Integer _
    ) 
    'Usage
     
    Dim instance As GcSpreadSheet
    Dim file As String
    Dim password As String
    Dim sheetIndex As Integer
     
    instance.OpenExcel(file, password, sheetIndex)
    public void OpenExcel( 
       string file,
       string password,
       int sheetIndex
    )

    Parameters

    file
    The path to load the file from.
    password
    The password used to open the file.
    sheetIndex
    The index of the sheet in Excel file.
    See Also