2001 JI Open Discussion Posted August 30, 2006 Share Posted August 30, 2006 By: Vincent Hsieh - sjspeed PAGE_NUMBER compile error ! 2004-03-17 22:45Hi, fork I use iReport 0.2.3, when I put the variable PAGE_NUM in the title of my doc , I get the message below : C:JavaiReportiReport0.2.3 mydoc1.java:112: inconvertible types found : java.lang.Integer required: java.lang.String value = (java.lang.String)(((java.lang.Integer)variable_PAGE_NUMBER.getValue())); How can I do ? TIA. By: Gregory A. Swarthout - gswarthout RE: PAGE_NUMBER compile error ! 2004-03-18 08:54PAGE_NUMBER is a variable of type Integer. You are trying to display it in a field of type String. Either change the field type or display it like: $V{PAGE_NUMBER}.toString() By: Vincent Hsieh - sjspeed RE: PAGE_NUMBER compile error ! 2004-03-18 19:25Thank 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