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

Adding menuitems to standardmenu

edited April 2006 in End User
Hi,

I used to do something like this in previous version :

if Designer.Menu.Items[0].IndexOf(mnuSendTil) = -1 then
begin
mnuInsert.Items.Remove(mnuSendTil);
Designer.Menu.Items[0].Insert(DesignerSendToIndex, mnuSendTil);
end;

Now in 10.02 this is not working anymore because the menuitems is no longer
TMenuItem. How do you suggest I handle this now?

Also I noticed that the file menu was disabled when in preview mode - why?
What I did with this inserted menu's was to make i possible for my users to
send reports via email as PDF - now they can't (or at the very best it would
feel strange to have to go to designmode to do this) because the menu is
disabled??

But first of all I need to know how to reimplement my "Send to.." menu on
the file menu...

Comments

  • edited April 2006

    1. RB 10 includes built-in support for email.

    When Report.EmailSettings.Enabled is set to true, then an email button will
    appear on the viewer toolbar, next to the print button. For existing reports
    stored to the report explorer, use the Report.Template.OnLoadEnd event to
    set

    ppReport1.EmailSettings.Enabled := True;

    2. Ideally each of the design work areas: Data, Calc, Design, Preview should
    have its own menu. Currently the Preview work area does have not have its
    own menu and thus the menu is disabled.

    3. The following is a downloadable example of customizing the menus and
    toolbars in the RB 10 designer

    www.digital-metaphors.com/tips/Designer10_CustomizeMenusAndToolbars.zip





    Best regards,

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