Jump to content
We've recently updated our Privacy Statement, available here ×

total gets printed on new page


patistuta
Go to solution Solved by Tom C,

Recommended Posts

I have report that print total at the end, i put the total textField in Summary band,and I made it Float so that it is always printed directly after the last row of the report.

 

the problem appears when the table rows fill the entire page, then the total gets printed in new page. my client does not like this, he says this report is unreadable.

 

he suggested one solution that I should always stick the total with the last row, if there is no space for the total in the page that the last row gets printed with it in new page not only the total.

 

how can I do that? beside i am open to new ideas to make the report readable for the client without putting the total alone in new page. 

 

Link to comment
Share on other sites

  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic

First get the total row count in your report query, then add the print when condition to your report detail section $V{REPORT_COUNT} < $F{total row count}. Add a second detail section with a larger band height to contain the same contents as the original report detail section plus theyour report totals placed below the original detal content. The print when expression for the new detail section is $V{REPORT_COUNT} == $F{total row count}.

This will force JR engine to treat the last record and your report total as one detail line with taller height to allow them stay together when pagination occurs.

Link to comment
Share on other sites

  • 1 year later...
  • 5 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...