Disabling Menu Options of the ppDesigner
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
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
This discussion has been closed.
Comments
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.
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