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

Disabling Menu Options of the ppDesigner

edited January 2004 in End User
Hi..

Is there a way I can disable or better still hide the menu options:
"Import", "Merge" & "Export" from the Data Tab Page of the ppDesigner?
I still need to keep the "Import From File" & "Export To File" options?

I am using the following to display the designer:

ppReport1.SaveAsTemplate := true;
ppReport1.Template.DatabaseSettings.Name := RBITEM2_TNAME.AsString;
ppReport1.Template.LoadFromDatabase;
ppReport1.ShowAutoSearchDialog := True;
ppdesigner1.ShowModal;

----------
Also is there a way I can manipulate the "Save/Open Dialog Box" so that
under names it displays the names of all the records in my RBITEMS table?

Many Thanks
Shahine

Comments

  • edited January 2004
    Hi..
    To diable the menu items I used:

    ppDesigner1TabChanged(Sender: TObject);
    begin
    if ppDesigner1.Notebook.ActivePage.caption = 'Data' then begin
    ppDesigner1.menu.Items[0].Items[4].visible := False; // -- ' Line'
    ppDesigner1.menu.Items[0].Items[5].visible := False; // -- ' Import'
    ppDesigner1.menu.Items[0].Items[6].visible := False; // -- ' Merge'
    ppDesigner1.menu.Items[0].Items[7].visible := False; // -- ' Export'
    end;

    but I still need to manipulate the "Save/Open Dialog Box"

    Many Thanks
    Shahine.



  • edited January 2004

    Try setting Report.Template.SaveTo to stDatabase and then configure the
    Report.Template.DatabaseSettings.

    Check out the Templates threads of the Tech Tips newsgroup for related
    articles.


    --
    Nard Moseley
    Digital Metaphors Corporation
    http://www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
This discussion has been closed.