Spread WPF 18
GrapeCity.Spreadsheet Namespace / IWorkbooks Interface / Open Method / Open(String,ImportContext) Method
The name of the file 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 name of the file 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