Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JasperReports page footer only printed on last page

For some reason my page footer with the date and page x/y gets only printed on the very last page. Does anyone have an idea why?

I am using JasperReports 3.1.2 and iReport 3.0.0.

EDIT: just for the record: it worked after I moved two subreports and two page breaks from the Title band to the Detail band. Don't know why I put them there, but now it works..

like image 389
martin Avatar asked Nov 30 '10 12:11

martin


People also ask

How do I make a two page Jasper report?

To add a new page go to Ireport and "Add Report Group" ,by adding report group you can add as many pages you want.

How do I create a group footer in Jasper report?

right click on the report in the report inspector and choose Add Report Group. Follow the wizard, set as group name PledgeType and choose Group by the following report object where you select the field PledgeType. Click next. Check Add the group header and click Finish.

Is ignore pagination in JasperReports?

Solution: This behavior is not possible in a regular report with subreports. Main report controls the pagination and pagination settings are ignored on subreport level. To achieve the desired result in this situation one would need to create a Workbook Report (aka report book feature added in 6.


1 Answers

You can select which band to add. just use page footer instead last page footer. Last page footer is used when you want something to be printed at last, but the contain is so much that it overflows to many pages.

like image 160
sarbe Avatar answered Sep 24 '22 21:09

sarbe