Spread Windows Forms 12.0 Product Documentation
Open(Stream,ImportContext,Boolean) Method


GrapeCity.Spreadsheet Assembly > GrapeCity.Spreadsheet Namespace > IWorkbooks Interface > Open Method : Open(Stream,ImportContext,Boolean) Method
The stream containing the workbook to open.
An GrapeCity.Spreadsheet.IO.OpenXml.ImportContext object indicates the import context.
true if the stream will be closed after finish opening. false to leave it as opened.
Open an existing workbook in a newly created instance of Workbook.
Syntax
'Declaration
 
Overloads Function Open( _
   ByVal stream As Stream, _
   Optional ByVal context As ImportContext, _
   Optional ByVal closing As Boolean _
) As IWorkbook
'Usage
 
Dim instance As IWorkbooks
Dim stream As Stream
Dim context As ImportContext
Dim closing As Boolean
Dim value As IWorkbook
 
value = instance.Open(stream, context, closing)
IWorkbook Open( 
   Stream stream,
   ImportContext context,
   bool closing
)

Parameters

stream
The stream containing the workbook to open.
context
An GrapeCity.Spreadsheet.IO.OpenXml.ImportContext object indicates the import context.
closing
true if the stream will be closed after finish opening. false to leave it as opened.

Return Value

A Workbook object represents the opened workbook.
See Also

Reference

IWorkbooks Interface
IWorkbooks Members
Overload List