Problem with column footer and summaries

I create invoices with JasperReports.

I have a Detail section that has a list of all the elements, followed by a column footer that has totals, tax, etc., and then a return policy in the Summary section.

I always want to make sure that the footer is followed by a footer with Summary columns. How can we provide this? I found that sometimes the Summary appears in front of the column footer.

Can someone shed some light on this?

+6
source share
3 answers

At the moment, there are actually not many solutions, because it seems that this is a design and not a mistake (personally, I think that they should have a choice for this). Your options are currently:

  • Create a group of reports (this, in fact, a fictitious group of reports, does not really matter). Move the contents of the Column Footer to Group Footer , and leave your resume in the Summary group. This seemed to work in my limited tests, and I will try first.
  • Set Float Column Footer and Summary on new Page to true according to the main properties of the report. This has an unfortunate side effect that a resume will always be printed on the second page, regardless of whether everything can fit on one.
  • Set the Float Column Footer to true and move the Summary section to the Last Page Footer bar. This means that it will be printed only once, but the content will be oriented to the bottom of the last page.

Edit: To shed light on this part of the question. This is by design. The column footer is / is considered to be essentially a specialized page footer. Thus, the body content (range of tunes, summary bar, etc.) is always placed on the page above. The only time this does not happen is when the resume is printed on a new page after the last footer has been displayed. So this is by design.

+7
source

I have been looking for answers to this stupid formatting question for hours, and I think I would find a useful solution:

  • move the contents of the footer to the page footer and
  • create the footer of the last page, but set its width to 1 pixel with no content inside

This allowed me to have some borders / subtotals at the bottom of each column, ignoring the footer (summary) content.

0
source

Add the footer of the last page, in which after that increase the bandwidth, add the contents of the column footer, add the total content to it (the footer of the last page) and remove the content from the final range.

0
source

All Articles