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

Controlling group breaks

edited March 2015 in General
Hello,

I'm using Dlephi XE2 and RB 14.07 and I'm not able to achieve the
following behaviour:

I'm creating a report that is grouped by a field (named "Section").

I would like the groups to be printed one after the other without
breaks, unless another field (named "SectionType") has a certain value,
in which case, I need to check if all the records of the current group
fit on the current page. If they don't the group must start on a new page.

What is the best way to accomplish this? Would it be possible to achieve
this by setting the "Keep together" property depending on the value of
the "SectionType" field (on the OnGetBreakValue event for example)?

Thank you and best regards, Luka

Comments

  • edited March 2015
    Hi Luka,

    Yes, you should be able to update the KeepTogether property before the
    group prints in the OnGetBreakValue event.

    Another option (depending on your data) would be to create 2 groups, one
    on SectonType and one on Section.

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited March 2015
    Hi Nico,

    the solution with 2 groups works perfectly!

    Thank you and best regards, Luka

This discussion has been closed.