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

Adding new page figures twice

edited May 2009 in General
I have D5 with RBuilder. In order to make custom sums into ppLabels, I use
the BeforePrint event to add fields and put them into variables. Before
printing the summary band, I load the variable values into new ppLabels.

However, when I check the numbers, I find that the program adds the first
number at the top of each new page twice (ie. if I have the numbers 2 and 4
at the top of page 2 and 3 in my report, the sum is off by 6).

What is going on and how do I fix it?

Comments

  • edited May 2009
    I recommend looking at the Calculations tutorial in the Developers Guide. It
    contains step by step instructions for using the TppVariable component -
    which is the component you need to be using.

    This rbWiki article provides an overview

    http://www.digital-metaphors.com:8080/Delphi_Code/Calculations/Overview

    There are additional demos installed with the product.



    --
    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited May 2009
    Thanks. That worked slick. I guess I was still in QuickReport mode.

This discussion has been closed.