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

Transporting the currency value

edited September 2001 in General
I want to transport the sum of the currency values, printed on the bottom of
the first page, from there to the top of the second page, from the bottom of
the second page to the top of the third and so on. I wonder if the is a
standard procedure for this. Please let met know.

Best regards,

--
Wim Looman

wim.looman@hills.nl
Hills automatisering

Comments

  • edited September 2001
    You could place a label component in the header band and in the AfterPrint
    event of the footer band, assign the caption of the label to the curreny
    value you would like. Set the label's caption to an empty string in the
    Report.BeforePrint event so that it doesn't show up on the first page.


    Cheers,

    Jim Bennett
    Digital Metaphors


  • edited September 2001
    I'm sorry, this is not what i meant. The problem is this.
    I create a tppdbcalc at run time. Here i calculate the sum of a field from a
    dataset.
    I've place a tppvariable component in the footerband, and in the ongettext
    event i write the value from the tppdbcalc component to the tppvariable
    component.
    But sometimes the last line of the first page is not calculated in the sum,
    printed in the footer of this page, of the first line of the second page is
    already calculated, so that the sum in the footerband is nog always correct.
    I can't discover why this happens.

    I hope this is more clear.
    Regards, Wim.

  • edited September 2001
    Use the OnCalc event of the TppVariable to assign a value to the
    TppVariable. The dbCalc will always fire its calculation before the
    TppVariable's OnCalc.

    Cheers,

    Jim Bennett
    Digital Metaphors


  • edited September 2001
    Hello Wim,

    I experienced the same. Place a group around your detail band and set
    the option 'keep together' for this group. You must use the
    KeyField of your Data Pipeline for the Report as Datafield
    for the group. Now the calculations are correct.

    Klaus
This discussion has been closed.