jasper report header not printed on summary page

北城余情 提交于 2020-01-13 02:30:32

问题


I'm using Jasper reports. I have a page header, detail & summary band. The page header is repeated on all pages but sometimes when only the summary part moves into last page as the detail gets over in the page before that. The header is not printed on the last page i.e summary page. Does somebody have any idea as to why the page header is not printed on the summary page. Is there some other way to print header on summary page.


回答1:


By default, the page header does not apply to the summary band.

Since Jasper 3.6.1, there is a report property that can be used to force the summary band also to have page header, called 'Summary with Page header and footer'. You should check it in iReport, or set isSummaryWithPageHeaderAndFooter="true" in the jasperReport tag.




回答2:


In previous versions, before 3.7.6, you can put your content on band

'lastPageFooterBand',

because the header content gonna be repeated.

Other solution is:

add a new band into your report.

In my case, I was using ireport 3.0. I tested the two situations and worked perfectly.

CooL!!!!! :)



来源:https://stackoverflow.com/questions/3966947/jasper-report-header-not-printed-on-summary-page

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