Home End User
New Blog Posts: Merging Reports - Part 1 and Part 2

Prevent the user from loading

How to prevent the user from loading a model in end user

Comments

  • Hi Heronim,

    The best way to prevent a user from loading a new report in the designer is to hide the menu and toolbar options.
    uses
    ppDesignToolManagerTBX,
    ppDesignToolbarsTBX;

    procedure TForm2.ppDesigner1Show(Sender: TObject);
    var
    lDesignToolManager: TppDesignToolManager;
    begin

    lDesignToolManager := ppDesigner1.Form.LayoutManager.ToolManager;

    //Hide Menu Option
    lDesignToolManager.Menubar.FileMenu.Open.Visible := False;

    //Hide Toolbar option
    TppStandardToolbar(lDesignToolManager.Toolbars.ItemsByName['Standard']).FileOpenButton.Visible := False;

    end;
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
Sign In or Register to comment.