tgs Posted October 17, 2010 Share Posted October 17, 2010 I have created a variable $V{current_page_no} to get the value of the current page of the report. The properties for that variable are:Class: java.lang.integerCalculation: NothingReset type: PageIncrement type: NoneVar Expression: $V{PAGE_NUMBER}Initial Value Expr.: new Integer(0)If the report has only one page I get "1".If items in the Detail band displayed on the second page I get "2".If the items of the Detail band are on the first page and only the Summary band is displayed on the second, I get "1" on the first but "0" on the second page!??Every idea is welcome how I could fix that. Regards,Thomas Link to comment Share on other sites More sharing options...
svenn Posted October 18, 2010 Share Posted October 18, 2010 See thishttp://jasperforge.org//uploads/publish/jasperreportswebsite/trunk/faq.html#FAQ7 Link to comment Share on other sites More sharing options...
tgs Posted October 18, 2010 Author Share Posted October 18, 2010 Thank you for the link,but this do not fix my problem. I'm struggeling to get the PAGE_NUMBER variable value at the evaluationTime = Report for a Print When Expression.My variable (max_page_no) and/or (cur_page_no) does not always return the PAGE_NUMBER variable value by evaluationTime. 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