ExcelPackage Constructor (FileInfo, String)

Office Open XML

Create a new instance of the ExcelPackage class based on a existing file or creates a new file.

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

Syntax

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

Parameters

newFile
Type: System.IO..::.FileInfo
If newFile exists, it is opened. Otherwise it is created from scratch.
password
Type: System..::.String
Password for an encrypted package

See Also