Description
Passes a spreadsheet from ExcelApplication to ExcelTemplate.
C#
vb.net
Parameters
excelApplication
The instance ofExcelApplication
that was used to create the spreadsheet.
workbook
A Workbook object representing the Excel file created withExcelApplication
.
Exceptions
ArgumentNullException
Open will throw this exception ifnull
(C#) or Nothing
(VB.NET) is passed to the method.
ArgumentException
Remarks
You can use ExcelApplication
to create a document with data markers (a template) and pass the file to ExcelTemplate
to populate the data markers.
If your template file is the new Office Open XML (.xlsx) format, you cannot open it using ExcelApplication
in ExcelWriter version 7.
Examples
C#
vb.net