Handling Groups
Manel
Barcelona, Catalonia
Hi all,
I've developed a report wth a group header and a master data. It works fine but there is one little problem. When the group header is printed just at the end of a page and there are not enough space to print one child, the header is printed in this page and also in de next one (the group header has property RepeatHeader set to true). I want to force a new page only when there are no space to print one child at least. Setting ForceNewPage to true is not correct bacause if it can print one chil or more I don't want to get a new page.
Thank for helphing me.
Manel
I've developed a report wth a group header and a master data. It works fine but there is one little problem. When the group header is printed just at the end of a page and there are not enough space to print one child, the header is printed in this page and also in de next one (the group header has property RepeatHeader set to true). I want to force a new page only when there are no space to print one child at least. Setting ForceNewPage to true is not correct bacause if it can print one chil or more I don't want to get a new page.
Thank for helphing me.
Manel
Comments
look at the reports demo see the report keep group together
in the obp event of the header
you need to check [freespace] and if it is less than header height + childband height then call newpage.
regards