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

How make Detail Invisible but calculated?

edited January 2005 in RAP
I have a an end user report that generates many (sometimes hundreds)
pages of detail, but generally my end-users will only want the final
summary band info which gives totals by month based on the detail.

So when the user in RAP exercises the option of setting:

Report.Detail.Visible:= False (in DetailBeforePrint)

Then the summary calculations are not made and have all zero values!
Perhaps my summary calculations need to be in a different event handler?
They work fine now, placed in DetailBeforeGenerate

TIA,

Scott Stalheim

Comments

  • edited January 2005

    1. You need to use a TppVariable and the TppVariable.OnCalc event to perform
    calculations. Please see the Calculations thread of the Tech Tips newsgroup
    for some general guidelines. There is a Calculations tutorial in the
    Developers and some Calculations examples in RBuilder\Demos\RAP

    2. Another approach is to use a Summary query, rather than setting the
    detailband.Visible to False.



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



    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited January 2005
    Use the DetailBandBeforePrint event to do the calculations and not the
    DetailBandBeforeGenerate as the DetailBandBeforeGenerate event does not get
    called if the Detail.Visible = False however the DetailBandBeforePrint event
    does get called regardless of the Detail.Visible setting.

    Scott Rowat
    CommonGoals Software

  • edited January 2005
    Scott Rowat wrote:

    Thanks. Worked great!

    Scott Stalheim
This discussion has been closed.