...
Description |
---|
Excerpt |
---|
Passes a spreadsheet from ExcelApplication to ExcelTemplate. |
Signature | ||||
---|---|---|---|---|
| ||||
public virtual void Open(ExcelApplication excelApplication, Workbook workbook)
{signature}
{signature: |
Signature | ||||||
---|---|---|---|---|---|---|
| }
| |||||
Public Overridable Sub Open(ByVal excelApplication As ExcelApplication, ByVal workbook As Workbook)
{signature}
{parameters}
{param:excelApplication}The instance of {{ExcelApplication}} that was used to create the spreadsheet.
{param}
{param:workbook}A [Workbook|Workbook] object representing the Excel file created with {{ExcelApplication}}.
{param}
{exceptions}
{exception:ArgumentNullException}[Open|ExcelTemplate.Open] will throw this exception if {{null}} \(C\#\) or {{Nothing}} \(VB.NET\) is passed to the method.
{exception}
{exception:ArgumentException}
{exception}
{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.
{remarks}
{example}{code:csharp|title=C#} |
Parameters |
---|
Param | ||||
---|---|---|---|---|
| ||||
The instance of |
Param | ||||
---|---|---|---|---|
| ||||
A Workbook object representing the Excel file created with |
Exceptions |
---|
Exception | ||||
---|---|---|---|---|
| ||||
Open will throw this exception if |
Exception | ||||
---|---|---|---|---|
| ||||
Remarks |
---|
You can use If your template file is the new Office Open XML (.xlsx) format, you cannot open it using |
Example | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|