horvatj Posted May 8, 2009 Share Posted May 8, 2009 Dear forum members,sorry for my next issue...my report looks like this: [PAGE 1][GROUP HEADER]---1 hdsfkshdfkjahsdkfhkjsd 102 ksjdflksdjlfjsdlkfj 203 jsdflsdjfljs 30[...]11 ksdjfksdjfkldjf 20[NEW PAGE FORCED BY JASPER REPORTS ENGINE]Grand Total 1340 What I would need is to force the last detail row to bes shown on the next page (for layout reasons). This should also force the subtotals to be shown on first page. Is there a way to do this?Or a workaround? I tried to add a new_page column in the database, and let a page break item be shown if the detail coulmn (new_page) has got a value =1, but then the layout is totally distroyed... subtotals of page are not shown ;-(Thanks a lotJohann Link to comment Share on other sites More sharing options...
Giulio Toffoli Posted May 8, 2009 Share Posted May 8, 2009 The only real problem is that JR is not able to say: "This is the last detail". But if you have a way to recognize it, just add a page break element with a printWhenExpression to force the page break.Giulio Link to comment Share on other sites More sharing options...
horvatj Posted May 8, 2009 Author Share Posted May 8, 2009 Giulio, I tried this already, but as I mentioned before: the problem in that case is: the page breaks avoids the subtotal block to appear (below the details)... Thank you, Johann Link to comment Share on other sites More sharing options...
Giulio Toffoli Posted May 8, 2009 Share Posted May 8, 2009 Not if the total is displayed in the column footer instead of the group footer. Link to comment Share on other sites More sharing options...
horvatj Posted May 17, 2009 Author Share Posted May 17, 2009 Yes, you're right! ;-)Thank you! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now