Widows and Orphans...
I have a fairly complex report with this structure:
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
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