Search Results for

    Show / Hide 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

    Unit: FlexCel.Core

    procedure TProtection.SetModifyPassword(const modifyPassword: string; const recommendReadOnly: Boolean; const reservingUser: string);

    Parameters

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

    See also

    • TProtection
    In This Article
    Back to top FlexCel Studio for VCL and FireMonkey v7.24
    © 2002 - 2025 tmssoftware.com