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

referring to fields in other subreports

edited June 2006 in Subreports
I have a report with three subreports. Depending on a report parameter i
want to modify fields in the sub reports to make them visible or not.
In my main report before print event I specify the following:

subreport1.Price3Field.visible := ParameterVisibleFlag;

however It is unable to compile as it is not aware of Price3field from the
subreport. Is there any way around this?

Comments

  • edited June 2006
    Hi Paul,

    Are you using RAP? If so, you can place the value of the parameter inside a
    global variable and use that to determine whether the text is visilble.
    Then you can use an event such as Band.BeforePrint to toggle the visibility
    property.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.