Controlling group breaks
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
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
This discussion has been closed.
Comments
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.
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
the solution with 2 groups works perfectly!
Thank you and best regards, Luka