2006 IR Open Discussion Posted August 19, 2006 Share Posted August 19, 2006 By: Wesley Ng - abrabra ClassCast Exception 2003-09-10 22:20 I having this problem when I try to use the runReportToPdf method.... Error at Generate: java.lang.ClassCastException: dori.jasper.engine.JasperPrint java.lang.ClassCastException: dori.jasper.engine.JasperPrint at dori.jasper.engine.JasperFillManager.fillReport(JasperFillManager.jav a:286) at dori.jasper.engine.JasperRunManager.runReportToPdf(JasperRunManager.j ava:280) at REPORT.Report.generateBrowser(Report.java:84) my code are something like this: byte[] bytes = null; mainFile = dir + "abc.jrprint"; bytes = JasperRunManager.runReportToPdf(mainFile, para,new JREmptyDataSource()); ...... Any one have any ideas what went wrong? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now