Handling Groups

ManelManel Barcelona, Catalonia
edited 10:33AM in FastReport 2.xx VCL
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

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 10:33AM
    Hi Manel
    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 ;)
  • ManelManel Barcelona, Catalonia
    edited 10:33AM
    Thanks gordk, it works fine!! ;)

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.