Master Detail Keep Together
Hi,
I'm using Fast Reports VCL 5 and am having a hard time keeping my master and detail bands from splitting across two pages. I've tried a number of different methods such as keep detail together, keep together, etc. but nothing seems to be working. Here is my current band layout:
Page Header 1 (empty)
Group Header 1
Master Data 1
Group Header 2
Detail Data 1
Group Footer 2
Group Footer 1
Page Footer
The actual output of data is working exactly like I need it, I just haven't found a way to keep my master detail from splitting across the page. I'm getting the contents of Master Data 1 on the last line of a page and the remaining bands on the next page. I want the master data band to stay with the rest of the bands.
Any help would be greatly appreciated!
Thanks,
Taylor
I'm using Fast Reports VCL 5 and am having a hard time keeping my master and detail bands from splitting across two pages. I've tried a number of different methods such as keep detail together, keep together, etc. but nothing seems to be working. Here is my current band layout:
Page Header 1 (empty)
Group Header 1
Master Data 1
Group Header 2
Detail Data 1
Group Footer 2
Group Footer 1
Page Footer
The actual output of data is working exactly like I need it, I just haven't found a way to keep my master detail from splitting across the page. I'm getting the contents of Master Data 1 on the last line of a page and the remaining bands on the next page. I want the master data band to stay with the rest of the bands.
Any help would be greatly appreciated!
Thanks,
Taylor
Comments
Have you tried using Report.Engine to test if space remains in your equivalent of GroupHeaderBeforePrint?
I successfully break my master-detail reports as in the following:
I have several more complicated reports with multiple layers, in which the "if FreeSpace" line just has more "Height" variables added.
Cheers, Paul