How make Detail Invisible but calculated?
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
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
This discussion has been closed.
Comments
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
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
Thanks. Worked great!
Scott Stalheim