TppVariable's Problem
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.
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.
This discussion has been closed.
Comments
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
http://www.digital-metaphors.com
info@digital-metaphors.com
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.