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

OnCalc changes value after browsing or printing

edited February 2004 in RAP
Hi,

we found a problem regarding values of a variable after browsing in the
preview window and then printing the report.

The report is build as follows:

Main report
Sub report
Region (keeptogether)
Variable

In the OnCalc-event of the variable we calculate something which seems to be
correct, but after we browse in the preview-window

like : page 1 - 2 - 3 - 4 - 5(last) - 4

The printed report prints on page 4 the first calculated value, the same as
the last calculated value!
(btw page 5 is a summary, no calculations there)

This same problem shows when we use a conditional visibility like:

Variable5.Visible:=Salesorderline['DoPrintTotal']=1; (also in the oncalc
event)
In this case the first Variable on page 4 is not visible after browsing 1 -
2 - 3 - 4 - 5 - 4.


It looks like the last value of the datapipeline is used when browsing back?

Can you help us?

Jeroen Koot

Comments

  • edited February 2004

    This is not a known issue. Perhaps it is related to using a Variable in a
    Region that has KeepTogether set to True. Just a guess. Can you create a
    simple, minimal example project that demonstrates the issue. Use
    ReportBuilder, standard Delphi components and DBDemos. E-mail in zip format
    to support@digital-metaphors.com and we can check it out here.


    --
    Nard Moseley
    Digital Metaphors
    http://www.digital-metaphors.com

    Best regards,

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