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

Variables

edited February 2008 in Subreports
Hello !

I have a report with a cover page and a subreport on the cover page I have a
variable component on the cover page and I am trying to pass the value of a
dbCalc sum from the subreport to the variable component.

I have set the appropiate properties of the dbCalc component and the
variable component and placed the assignment in the onCalc event of the
dbCalc component ( variable.value := dbCalc.value but the value is not being
assigned to the Variable for some reason

Thanks

Comments

  • edited February 2008
    Hi Richard,

    The problem is the timing in which the DBCalc calculates its value and when
    you assign the variable value. The DBCalc does not always calculate its
    final value in the OnCalc event. In your case, I would recommend making all
    the calculations manually with TppVariables and keeping them in sync with
    the variables in the main report.

    --
    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.