SetPassword Method

Office Open XML

Sets a password for the workbook. This does not encrypt the workbook.

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

Syntax

C#
public void SetPassword(
	string Password
)
Visual Basic (Declaration)
Public Sub SetPassword ( _
	Password As String _
)
Visual C++
public:
void SetPassword(
	String^ Password
)

Parameters

Password
Type: System..::.String
The password.

See Also