[]
        
(Showing Draft Content)

GrapeCity.Spreadsheet.IWorkbooks.Open

Open Method

Open(string, ImportContext)

Open an existing workbook in a newly created instance of GrapeCity.Spreadsheet.Workbook.

Declaration
IWorkbook Open(string filename, ImportContext context = null)
Function Open(filename As String, Optional context As ImportContext = Nothing) As IWorkbook
Parameters
Type Name Description
string filename

The name of the file to open.

ImportContext context

An ImportContext object indicates the import context.

Returns
Type Description
IWorkbook

A GrapeCity.Spreadsheet.Workbook object represents the opened workbook.

Open(Stream, ImportContext, bool)

Open an existing workbook in a newly created instance of GrapeCity.Spreadsheet.Workbook.

Declaration
IWorkbook Open(Stream stream, ImportContext context = null, bool closing = true)
Function Open(stream As Stream, Optional context As ImportContext = Nothing, Optional closing As Boolean = True) As IWorkbook
Parameters
Type Name Description
Stream stream

The stream containing the workbook to open.

ImportContext context

An ImportContext object indicates the import context.

bool closing

true if the stream will be closed after finish opening. false to leave it as opened.

Returns
Type Description
IWorkbook

A GrapeCity.Spreadsheet.Workbook object represents the opened workbook.