Table of Contents

TProtection.SetModifyPassword Method

Sets the password for modifying the file. It won't encrypt the file, it just won't let Excel save the file. On Excel goto Options->Security to check it. Note that you can only set it, there is no way to retrieve an existing password.

Syntax

Namespace: FlexCel.Core

public void SetModifyPassword(String modifyPassword, Boolean recommendReadOnly, String reservingUser)

Parameters

<-> Parameter Type Description
modifyPassword String The new password. Set it to null to clear it.
recommendReadOnly Boolean When true, Excel will recommend read only when opening a file.
reservingUser String The user that reserves the file. It will appear on the password dialog on Excel.

See also