Spread WPF 18
GrapeCity.Wpf.SpreadSheet Namespace / GcSpreadSheet Class / OpenExcel Method / OpenExcel(Stream,ImportOptions) Method
Stream that contains an Excel file.
An GrapeCity.Spreadsheet.IO.OpenXml.ImportOptions value indicating the settings to open.


In This Topic
    OpenExcel(Stream,ImportOptions) Method
    In This Topic
    Opens an Excel file and loads it into Spread.
    Syntax
    'Declaration
     
    Public Overloads Function OpenExcel( _
       ByVal stream As Stream, _
       Optional ByVal options As ImportOptions _
    ) As Boolean
    'Usage
     
    Dim instance As GcSpreadSheet
    Dim stream As Stream
    Dim options As ImportOptions
    Dim value As Boolean
     
    value = instance.OpenExcel(stream, options)
    public bool OpenExcel( 
       Stream stream,
       ImportOptions options
    )

    Parameters

    stream
    Stream that contains an Excel file.
    options
    An GrapeCity.Spreadsheet.IO.OpenXml.ImportOptions value indicating the settings to open.

    Return Value

    true if the file is opened successful; otherwise, false.
    See Also