lwm0227_1 Posted June 6, 2017 Share Posted June 6, 2017 Hi,I have to print a range of documents from 1 - 10. Each documents itself has its own total pages.Eg: doc 1 has total pages 1 doc 2 has total pages 3 doc 3 has total pages 1 doc 4 has total pages 5i using page footer band to drop in textfields. but certain textfields i need to hide as the page is not the last page of that particular document.***Last page footer can't be used as it only print on last page of document 10.Please suggest this if any one knows.. Link to comment Share on other sites More sharing options...
hozawa Posted June 7, 2017 Share Posted June 7, 2017 Have you tried just creating a new variable for you page? There's no need to use JasperReports default variable page. Just create a new variable and update the value when you want to. Link to comment Share on other sites More sharing options...
lwm0227_1 Posted June 7, 2017 Author Share Posted June 7, 2017 I had tried create a variable to count the row inside a page in order to print/hide certain fields. But the problem is when second page is blank, value of variable in second page will carry the first page value to display. So when two pages variable is the same, the print when expression i used is not longer valid. Below is the example from the report i had print out. Noted that the 14 is the value of the variable i had created. Both page 1 and 2 carry same value when the second is blank. Page 1 Page 2 Link to comment Share on other sites More sharing options...
quacker.2715 Posted June 8, 2017 Share Posted June 8, 2017 Is it a single report with page count reset after group break? May be related to my issue http://community.jaspersoft.com/questions/1051991/page-count-out-sync-when-using-group-keep-together-option 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