New (empty) Method

Creates a new empty Excel document.

Syntax

Sub New (empty)(filePath, mode)


Parameters


filePath

Type: String

The file path of this Excel document


mode

Type: System.IO.FileMode

The mode to use when creating the new file



Return Value


Type: VSExcelDocument

Examples

IronPython

#Create empty Excel document

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



C#

//Create empty Excel document

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


Remarks