Widows and Orphans...

I have a fairly complex report with this structure:
PageHeader
  GroupHeader_1
    MasterData
    GroupHeader_2
      DetailData
      SubdetailData
    GroupFooter_2
  GroupFooter_1
PageFooter

GroupFooter_2 contains a subtotal for the items in DetailData/SubdetailData which is conditioned by a field associated with GroupHeader_1.

GroupHeader_2, DetailData and SubdetailData all have the KeepTogether field set to true and the AllowSplit field set to false.

There are two issues with this report.

1) I cannot get the subtotals in GroupFooter_2 to print together with the DetailData/SubdetailData which is causing my customer some grief. GroupFooter_2 sometimes ends up on a page by itself. It's not entirely clear to me whether the KeepTogether flag on GroupHeader_2 keeps the entire group together (including the associated footer) or what...?

2) Occasionally, GroupHeader_1 will be followed by a blank page, with the next MasterData items starting on the next page. This seems to be linked to the length of the DetailData/SubdetailData bands - i.e. if they are just slightly longer than the available space below GroupHeader_1, this effect happens. This looks like a bug to me...

The report itself works beautifully, so it's just a case of getting the layout to be perfect.

Any suggestions?

- Niels

v4.7.66 on Delphi7

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.