ExcelPackage Constructor (FileInfo, FileInfo)

Office Open XML

Create a new instance of the ExcelPackage class based on a existing template. If newFile exists, it will be overwritten when the Save method is called

Namespace:  OfficeOpenXml
Assembly:  EPPlus (in EPPlus.dll) Version: 3.0.0.1 (3.0.0.1)

Syntax

C#
public ExcelPackage(
	FileInfo newFile,
	FileInfo template
)
Visual Basic (Declaration)
Public Sub New ( _
	newFile As FileInfo, _
	template As FileInfo _
)
Visual C++
public:
ExcelPackage(
	FileInfo^ newFile, 
	FileInfo^ template
)

Parameters

newFile
Type: System.IO..::.FileInfo
The name of the Excel file to be created
template
Type: System.IO..::.FileInfo
The name of the Excel template to use as the basis of the new Excel file

See Also