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

Problem printing summary data

edited December 2004 in General
Hi,

In my report I keep track of amounts of money per currency. In the end I
want to show the added totals per currency. Since I don't know beforehand
how many different currencies there are going to be, I 'm filling tppMemo
objects in the summaryband with the totals per currency through the use of
passthrough functions. The calculations I've put in the DetailAfterPrint
event of the report.

I encountered the following problem:
The summarized totals in the report will change depending on which pages the

Comments

  • edited December 2004

    Some options:

    1. Use TppVariable components and the Variable.OnCalc event. TppVariable
    component save/restore their intermediate results for each page to an
    internal cache. Thus, they avoid the issues you describe.

    2. Another approach is to create a summary query and use a subreport to
    print the summary info.

    3. You can try another technique - I am not sure whether it will work. You
    might be able to set the report to TwoPass and then in your Detail
    AfterPrint event add a check for

    if Report.FirstPass then
    {perform calc}





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



    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
This discussion has been closed.