This week's book giveaway is in the General Computing forum.
We're giving away four copies of Emmy in the Key of Code and have Aimee Lucido on-line!
See this thread for details.
Win a copy of Emmy in the Key of Code this week in the General Computing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

Problem in ireport

 
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hai,
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

 
Politics n. Poly "many" + ticks "blood sucking insects". Tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!