Spread Windows Forms 17
GrapeCity.Spreadsheet Assembly / GrapeCity.Spreadsheet Namespace / IWorkbooks Interface / Open Method / Open(String,ImportContext) Method
The filename of the workbook to open.
An GrapeCity.Spreadsheet.IO.OpenXml.ImportContext object indicates the import context.


In This Topic
    Open(String,ImportContext) Method
    In This Topic
    Open an existing workbook in a newly created instance of Workbook.
    Syntax
    'Declaration
     
    
    Overloads Function Open( _
       ByVal filename As String, _
       Optional ByVal context As ImportContext _
    ) As IWorkbook
    'Usage
     
    
    Dim instance As IWorkbooks
    Dim filename As String
    Dim context As ImportContext
    Dim value As IWorkbook
     
    value = instance.Open(filename, context)

    Parameters

    filename
    The filename of the workbook to open.
    context
    An GrapeCity.Spreadsheet.IO.OpenXml.ImportContext object indicates the import context.

    Return Value

    A Workbook object represents the opened workbook.
    See Also