0
votes

I have a requirement where I need to have a template design in certain way that I can print few info section on first page only and few info would be dynamic and will continue on other pages. Here is the design I have

  • [Page Header] will be repeated on each page
  • [column header] will print only on first page
  • [detail band] will have dynamic table which will expand to multiple page based on the table rows
  • [column footer] have info which I need only on page one
  • [page footer] will be displayed on each page
  • [Last page footer] will have some different info which will be on the last page only

My issue is that everyone thing is working but [column footer] is causing a problem. Column footer is printing the value on first page but occupying blank space on the other pages and because of that other pages have information printed on half page and half page is blank.

I saw the info in Jasper that column footer will not be collapsed. What is the solution to fix this issue.

Please give some suggestions for it.

As my requirements are little different then given solution. Here is I explain

  1. The information which I have in ColumnFooter should be on first page only.
  2. Above the ColumnFooter I have detail band which contains a table. The table in detail band is dynamic and it can have any number of rows.
1
use groupFooter instead as suggested in the duplicatePetter Friberg
The issue with group footer is that it will print the data after detail band's content is printed. I have detail band with dynamic table which can go to next page based on the data but the content in ColumnFooter should be in first page only.user3739018
GroupHeader prints info about detail band. I need info after detail band.user3739018
Ahh sorry I did not understand your comment. If group per page don't you get a group footer on each page? Are you using the jr:table?Petter Friberg

1 Answers

0
votes

set the printWhenExpression property of Column footer

<printWhenExpression><![CDATA[$V{PAGE_NUMBER}==1]]></printWhenExpression>