SaveAs Method (FileInfo, String)

Office Open XML

Saves the workbook to a new file The package is closed after it has been saved

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

Syntax

C#
public void SaveAs(
	FileInfo file,
	string password
)
Visual Basic (Declaration)
Public Sub SaveAs ( _
	file As FileInfo, _
	password As String _
)
Visual C++
public:
void SaveAs(
	FileInfo^ file, 
	String^ password
)

Parameters

file
Type: System.IO..::.FileInfo
The file
password
Type: System..::.String
The password to encrypt the workbook with. This parameter overrides the Encryption.Password.

See Also