In jasperreports how to force page break before a group title if there is no room for any subsequent rows

梦想的初衷 提交于 2019-12-11 11:59:09

问题


Is there a way of forcing a page break before a group title if there is no room for ANY of the subsequent rows? It would be nice to be able to query the amount of space left on the current page.


回答1:


There is a property called min height to start new page you will find on the group header. Make this a sum of the height of your detail row and the group header as the lowest amount (more if you want it to have at least 2 rows of detail). I also suggest setting the Keep Together to true as well.



来源:https://stackoverflow.com/questions/17440483/in-jasperreports-how-to-force-page-break-before-a-group-title-if-there-is-no-roo

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!