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

Counting Groups

edited May 2003 in General

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

Comments

  • edited May 2003
    Bruno,

    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.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited May 2003


    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

  • edited May 2003
    Bruno,

    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.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.