Spread Windows Forms 17
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.


In This Topic
    Open(Stream,ImportContext,Boolean) Method
    In This Topic
    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)

    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