File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes Problem in ireport Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Problem in ireport" Watch "Problem in ireport" New topic
Author

Problem in ireport

Nijin puthiya purayil
Ranch Hand

Joined: Nov 09, 2011
Posts: 32
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

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem in ireport
 
Similar Threads
Problem with Jasper report
Unable to execute jar file....got following stack trace.
Unable to execute jar file....got following stack trace.
Jasper Reports Exception
simple jasper report in java without a database.