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

PassSetting issue

edited May 2005 in General
Hi, I have a report that involved a lot of calculations using variables. I
will say its not the best designed as in I would change it to pull figures
from the database rather than use variables to calculate.
Anyway, if I set my PassSetting to onepass and I preview the report page by
page, it doesn't add a figure from a previously printed subreport. if I
navigate to the last page and come back, it adds correctly and the correct
figure is displayed.
If I set it to twopass, it works fine. I have my variables in the OnCalc
events
Any reason why this may be happening?

--
RB 6.03
Delphi 6

Cheers,
Shanil

Comments

  • edited May 2005
    Hi Shanil,

    In which event are you adding the value from the previously generated
    report? Try placing a break point in this code and see how it reacts as you
    step through your report for the first pass.

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited May 2005
    I have it on the OnCalc of the variable that is supposed to add the 2
    values. On the first pass, one of the variables results in 0, when it
    should have a value greater than 0. I've checked the CalcOrder also and
    they look ok.
    Anyways, for now the twoPass seems to have fixed my issue.

This discussion has been closed.