Counting Groups
Hi, In my Report I want to put in the summary the number of times that one
group repeats, via code. Is there a way to "prepare" then report so i can
get the the property value of (ppReport.Groups[0].BreakNo), so i can put it
in label on the summary the number of time a group repeated?
Thanks
This discussion has been closed.
Comments
I am a bit unsure what the problem is. You should be able to place a
TppVariable of type Integer in your summary band and set the value equal to
ppReport.Groups[i].BreakNo. Is this not working for you? If not, please
send a small example demonstrating the issue to
support@digital-metaphors.com and I'll take a look.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Ok, but my question is that ppReport.Groups[i].BreakNo = 0 until I execute
de "ppReport.Print" Method?
Is There another way of getting the ppReport.Groups[i].BreakNo > 0 before i
execute the "ppReport.Print" Method?
Thanks
There is no way to know how many times a group will break before the report
generates. You will need to set the Report.PassSetting to TwoPass so you
can retrieve the number of group breaks during the first pass before the
report is actually printed. This will be done after the Report.Print call
but before the report is sent to the device.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com