I am creating invoices with JasperReports.
I have a Detail section that has the list of all items followed by a column footer which has Totals, Tax etc., and then the return policy in the Summary section.
I want to always ensure that the Detail is followed by Column footer followed by Summary bands. How can we ensure this? I found that sometimes the Summary comes before the Column footer.
Can someone throw some light on this?
There really is not much of a solution to this at the moment as it seems to be by-design and not a bug (personally I think they should have an option for this). Your options at the moment though are:
doesn’t really matter). Move your
Column Footercontents into theGroup Footerband, and leave your Summary in theSummaryband.This seemed to work in my limited tests, and I would try it first.
Float Column FooterandSummary on new Pageto true under themain report properties. This has the unfortunate side effect that the
summary will always be printed on a second page regardless if
everything could fit on one.
Float Column Footerto true and move yourSummarysection tothe
Last Page Footerband. This means it will only be printed once,but the content will be oriented towards the bottom of the last page.
Edit: For the shed some light on this part of the question. It is by design. The Column Footer is seen/treated as essentially a specialized Page footer. So body content (detail band, summary band, etc.) are placed on the page above it always. The only time it does not seem to happen is when the summary is printed on a new page, after the last Column Footer has been printed. So it is by design.