Hi Amy,
Thank you for using Syncfusion Essential XlsIO. Use the following code snippets to open spreadsheets with data in it.
[C#]
//New instance of XlsIO is created.[Equivalent to launching MS Excel with no workbooks open].
//The instantiation process consists of two steps.
//Step 1 : Instantiate the spreadsheet creation engine.
ExcelEngine excelEngine = new ExcelEngine();
//Step 2 : Instantiate the excel application object.
IApplication application = excelEngine.Excel;
//Opening the Worksheet from Existing Workbook.
IWorkbook workbook = application.Workbooks.Open(@"..\..\Opening.xls");
[VB]
''New instance of XlsIO is created.[Equivalent to launching MS Excel with no workbooks open].
''The instantiation process consists of two steps.
''Step 1 : Instantiate the spreadsheet creation engine.
Dim excelEngine As ExcelEngine = New ExcelEngine()
''Step 2 : Instantiate the excel application object.
Dim application As IApplication = excelEngine.Excel
''Opening the Worksheet from Existing Workbook.
Dim workbook As IWorkbook = application.Workbooks.Open("..\..\Opening.xls")
Here is a sample for your reference:
Opening.zip
Please take a look at the sample above and let me know if you have any other questions.
Thanks,
Melba