Mahmoudmatrawy2 Posted February 18, 2020 Share Posted February 18, 2020 how to determine the page number inside a list? the list contains 100 records, i want to print in every record the current page number. page number variable not worked for me. it only keeps showing number1 but the total number of pages in jasper view is over 8. Link to comment Share on other sites More sharing options...
luked Posted February 18, 2020 Share Posted February 18, 2020 Make sure your page number variable is in your Page Footer band Link to comment Share on other sites More sharing options...
Solution I am Leo Posted February 19, 2020 Solution Share Posted February 19, 2020 In my opinion,Because your list is on page #1 so that It will print the page number is 1.So for the workaround solution, you can calculate the page number base on the total record you have, total record on one page and current index ($V{REPORT_COUNT}) Link to comment Share on other sites More sharing options...
Mahmoudmatrawy2 Posted February 19, 2020 Author Share Posted February 19, 2020 I solved the problem in the code side, in my java project I created a variable named it as page number, I calculated the number of list record per page, found that 15 records in one page, then every time 15 record passes I increment the page number by one and so on... 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