Description
Opens a Workbook from an ExcelTemplate object.
C#
vb.net
Parameters
excelTemplate
AnExcelTemplate
object representing the workbook to open.
Returns
Workbook that is opened.Remarks
If your template file is the new Office Open XML (.xlsx) format, you can pass it into the ExcelApplication.Open method just as you would a BIFF8 (.xls) Excel file. You will need to remember to give the output file a ".xlsx" extension when you call Save as ExcelWriter cannot convert .xlsx files to .xlsExceptions
System.Exception
If there is a problem creating, opening, or writing to the file specified, or reading from theWorkbook
object.
Examples
C#
vb.net