Problems with TppDbCalc.
Hello. I work with RB Professional 6.03 and Delphi 6.
Creating a report on runtime i place a TppDbCalc component in the footer
band. The property DataPipeLine of the component is the same of the report
and the DataField property is asigned to a field of the DataSource. The
property DbCalcType = dcSum.
Problem : when the report print the first page, the DbCalc has a
incorrect value: the sum of the records of the first page + the first record
of the second page. Why?
Thank you.
--
begines@albainformatica.net
Creating a report on runtime i place a TppDbCalc component in the footer
band. The property DataPipeLine of the component is the same of the report
and the DataField property is asigned to a field of the DataSource. The
property DbCalcType = dcSum.
Problem : when the report print the first page, the DbCalc has a
incorrect value: the sum of the records of the first page + the first record
of the second page. Why?
Thank you.
--
begines@albainformatica.net
This discussion has been closed.
Comments
page at the bottom. It couldn't fit so it printed on the top of the next
page. The reason that the dbCalc includes the first value from the next
page is because it was told to calculate when the detail tried to generate
on the first page. Unfortunately, it didn't fit and the dbCalc value wasn't
restored to the previous value. This has alwasy been the way RB works in
this case. Here is a technique which lets you display a page total with the
correct amount.
http://www.digital-metaphors.com/tips/PageFooterSumWithDynamicHeightDetail.z
ip
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com