Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jasper report header not printed on summary page

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.

like image 373
rakesh Avatar asked Oct 19 '10 09:10

rakesh


People also ask

How do I repeat header in jasper report?

If you want it repeated on each page, create a custom Ad Hoc Template in Jaspersoft Studio, and in that template check the "Summary With Page Header and Footer" option described above. Then use this template when saving Ad Hoc reports.

How do I add a footer in jasper report?

In MS Excel when we select the View Tab ->Page Layout , it will display how the generated excel report will be breaked up into pages. It will dispaly a section called "Click to add Header" & "Click to add footer".


1 Answers

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.

like image 64
yshalbar Avatar answered Nov 18 '22 18:11

yshalbar