New (from template) Method

Creates a new Excel document from the specified template.

Syntax

Sub New (from template)(templateExcelDoc)


Parameters


templateExcelDoc

Type: VSExcelDocument

The template to derive the new Excel document from



Return Value


Type: VSExcelDocument

Examples

IronPython

#Create Excel document from template

templateDoc = VSExcelDocument("D:\Data\Tabular.Transaction.Header.xlsx", FileMode.Open)

doc = VSExcelDocument(templateDoc)


C#

//Create Excel Excel document from template

VSExcelDocument doc = new VSExcelDocument(@"D:\Data\Tabular.Transaction.Header.xlsx", FileMode.Open);
VSExcelDocument doc = new VSExcelDocument(templateDoc);

Remarks