Page tree
Skip to end of metadata
Go to start of metadata

Description

Opens a Workbook from an ExcelTemplate object.

C#
vb.net

Parameters

excelTemplate
An ExcelTemplate 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 .xls

Exceptions

System.Exception
If there is a problem creating, opening, or writing to the file specified, or reading from the Workbook object.

Examples

C#
vb.net
  • No labels