Jasperreports: how to make the page footer always fixed at the bottom of each page?

lancel picture lancel · May 2, 2012 · Viewed 19k times · Source

I have a problem with page footer in jasperreports. I want to keep the page footer fixed at the bottom of each page. If there is only one record in detail band, the footer comes right after the detail band in the middle of the page. I have set the "position type" of the elements in footer to "fix relative to bottom". but it doesn't work. I can not increase the height of detail band, because it will also increase the blank between each records. Can anyone help me? Thanks!

Answer

bubba_hego99 picture bubba_hego99 · Nov 26, 2012

Not sure @mdahlman's answer covers/fixes/understands the original question, but I could be wrong.

To have a page footer always appear at a fixed position at the very bottom of the page/paper, I believe that the best way is to place footer (fields/text/graphics) in the Background Band.

And make sure to have a PageFooter band with empty space, to make sure no Detail-data is printed on top of the fixed-footer in Background-band. You can still have a PageFooter with page-summary-fields printed, but you need empty space at bottom of PageFooter to accomodate for the fixed-footer in Background-band.