Page Break *if necessary*
Dear Ladies and Gentlemen,
How do I make a page break *if it is necessary*?
I want to get the whole table together. If there is enough space on the current page, the entire databand should be displayed on this page.
If there is not enough space on the current page, a page break should be inserted.
Best Regards
Mira
How do I make a page break *if it is necessary*?
I want to get the whole table together. If there is enough space on the current page, the entire databand should be displayed on this page.
If there is not enough space on the current page, a page break should be inserted.
Best Regards
Mira
Comments
1. set report to double-pass
2. at first-pass : calculate the height of detail data
3. at final-pass : page break is done by adjusting header's height
4. look at my sample (groups.frx & data.xml), i couldnt understand the way fastreport think, why do i need to adjust 18.9F (data1.height) in code : perhaps because record.movenext in data1
5. avoid 'cangrow' property, more headache [img]style_emoticons/<#EMO_DIR#>/rolleyes.gif" style="vertical-align:middle" emoid=":rolleyes:" border="0" alt="rolleyes.gif" /> 6. an alternative: page break is done by engine.startnewpage();[/img]
We haven't been able to get your solution to work in our project but we have found another solution that seems to be working:
The snag is that this has to be repeated for each and every table.