Jump to content
Changes to the Jaspersoft community edition download ×

PAGE_NUMBER compile error !


Recommended Posts

By: Vincent Hsieh - sjspeed

PAGE_NUMBER compile error !

2004-03-17 22:45

Hi, 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:54

PAGE_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:25

Thank you .

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...