• Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem in ireport  RSS feed

Nijin puthiya purayil
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm using a jasper report to generate a report using my database...in this i'm trying to compile and convert this jasper report to a pdf file...but i'm getting the error at run time like this...
Exception in thread "main" net.sf.jasperreports.engine.JRException: Errors were encountered when compiling report expressions class file:
report32name_1321852492065_59245.java:177: inconvertible types
found : java.lang.Float
required: java.lang.String
value = (java.lang.String)(((java.lang.Float)field_amountpaid.getValue())); //$JR_EXPR_ID=10$
report32name_1321852492065_59245.java:182: inconvertible types
found : java.sql.Date
required: java.lang.String
value = (java.lang.String)(((java.sql.Date)field_date.getValue())); //$JR_EXPR_ID=11$

Here i used the mysql database....the Float value is amountpaid and Date value is date in my database....
This is the code i used here...actually i got this from the site http://www.javabeat.net/articles/print.php?article_id=258
Please do help me...Nijin

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!