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

TppVariable's Problem

edited September 2002 in General
I have a report which lists the invoices for each customer within a period
of time. In the report, I have a grouping by Customer Code, in the detail
band, I have 3 TppVariable and some TppDBText fields, and each of the
TppVariable's OnCalc event has a simple computation using some fields in a
TQuery (TppBDEPipeline is linked to it).

My problem is, the 3 calculated TppVariable value are not correct when the
customer group overflows to a new page, but only the first line of the
invoice will have the wrong value, and the weird part is, these values are
computed correctly (sometimes) or have a different value compare to
earlier printout when I print the same report again and again.

Is this a RB's bug or I have done something wrong (unlikely)? Please
advice. Thanks in advance.

FYI, I am using Delphi 5 and RB5.0.

Comments

  • edited September 2002
    If you are using the OnCalc event on a variable to calculate, then that is
    correct. I looked at the bug fixes for 5.0 and I don't see any related to
    variables not calculating correctly. Can you try testing with RB 7 trial
    edition to see if the calculations work correctly in the latest version?

    http://www.digital-metaphors.com/subpages/reportbuilderent/main_download.htm
    l

    Cheers,

    Jim Bennett
    Digital Metaphors

  • edited September 2002
    Thanks for your response. I don't have enough time to do a test using
    RB7, but I manage to solve the TppVariable problem by un-checked the Keep
    Group Together for my Invoice# group. I could not use the Keep Group
    Together in my Invoice# group, because the TppVariable calculation will
    not perform correctly. There must be something wrong somewhere.

    Thanks.
This discussion has been closed.