[]
        
(Showing Draft Content)

GrapeCity.Wpf.SpreadSheet.GcSpreadSheet.OpenExcel

OpenExcel Method

OpenExcel(string, ImportContext)

Opens an Excel file and loads it into Spread.

Declaration
public bool OpenExcel(string filename, ImportContext context)
Public Function OpenExcel(filename As String, context As ImportContext) As Boolean
Parameters
Type Name Description
string filename

Path and name of file to open.

ImportContext context

An ImportContext object indicating the settings to open.

Returns
Type Description
bool

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

OpenExcel(string, ImportOptions)

Opens an Excel file and loads it into Spread.

Declaration
public bool OpenExcel(string filename, ImportOptions options = ImportOptions.Default)
Public Function OpenExcel(filename As String, Optional options As ImportOptions = ImportOptions.Default) As Boolean
Parameters
Type Name Description
string filename

Path and name of file to open.

ImportOptions options

An ImportOptions value indicating the settings to open.

Returns
Type Description
bool

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

OpenExcel(Stream, ImportOptions)

Opens an Excel file and loads it into Spread.

Declaration
public bool OpenExcel(Stream stream, ImportOptions options = ImportOptions.Default)
Public Function OpenExcel(stream As Stream, Optional options As ImportOptions = ImportOptions.Default) As Boolean
Parameters
Type Name Description
Stream stream

Stream that contains an Excel file.

ImportOptions options

An ImportOptions value indicating the settings to open.

Returns
Type Description
bool

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

OpenExcel(Stream, ImportContext)

Opens an Excel file and loads it into Spread.

Declaration
public bool OpenExcel(Stream stream, ImportContext context)
Public Function OpenExcel(stream As Stream, context As ImportContext) As Boolean
Parameters
Type Name Description
Stream stream

Stream that contains an Excel file.

ImportContext context

An ImportContext object indicating the settings to open.

Returns
Type Description
bool

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