FlexGrid for WinForms | ComponentOne
C1.Win.C1FlexGrid Namespace / Extensions Class / LoadExcel Method / LoadExcel(C1FlexGridBase,Stream,String,FileFlags) Method
C1FlexGridBase instance to which a file will be loaded.
The System.IO.Stream to read.
Name of the worksheet to load.
Options to use when loading the file.

In This Topic
    LoadExcel(C1FlexGridBase,Stream,String,FileFlags) Method
    In This Topic
    Loads the grid from a Microsoft Excel (.XLS) file.
    Syntax
    'Declaration
     
    
    Public Overloads Shared Sub LoadExcel( _
       ByVal grid As C1FlexGridBase, _
       ByVal stream As Stream, _
       ByVal sheetName As String, _
       ByVal flags As FileFlags _
    ) 
    public static void LoadExcel( 
       C1FlexGridBase grid,
       Stream stream,
       string sheetName,
       FileFlags flags
    )

    Parameters

    grid
    C1FlexGridBase instance to which a file will be loaded.
    stream
    The System.IO.Stream to read.
    sheetName
    Name of the worksheet to load.
    flags
    Options to use when loading the file.
    Remarks
    Use the LoadExcelSheetNames(C1FlexGridBase,Stream) method to obtain a list of the worksheets in an XLS file.
    See Also