Jump to content
We've recently updated our Privacy Statement, available here ×

jackiema

Members
  • Posts

    2
  • Joined

  • Last visited

jackiema's Achievements

Newbie

Newbie (1/14)

  • First Post Rare
  • Week One Done
  • One Month Later
  • One Year In

Recent Badges

0

Reputation

  1. Still struggling with no clue. Please help me if anyone knows what the problem is. Here is my console: java.lang.ClassCastException: net.sf.jasperreports.engine.JasperReport at net.sf.jasperreports.engine.JasperExportManager.exportReportToPdfFile(JasperExportManager.java:77) at HelloWorldApp.main(HelloWorldApp.java:115) And in the class, I am using JasperExportManager as: JasperExportManager.exportReportToPdfFile(fileName); The report is the as simple as: <?xml version="1.0"?> <!DOCTYPE jasperReport PUBLIC "-//JasperReports//DTD Report Design//EN" "http://jasperreports.sourceforge.net/dtds/jasperreport.dtd"> <jasperReport name="Simple_Report"> <detail> <band height="20"> <staticText> <reportElement x="180" y="0" width="200" height="20"/> <text><![CDATA[Hello World!]]></text> </staticText> </band> </detail> </jasperReport> So I guess it has nothing to do with the file. But I am using both jasper jars and project code from 1.2.4 and it compiled fine. Thanks Jackie
  2. Hi, I am getting the exactly same error. It worked only on "fill". Not for pdf, xml, html... anything. Have anyone got the answer yet? Please help! Thanks, Jackie
×
×
  • Create New...