Jump to content
JasperReports Library 7.0 is now available ×

ClassCast Exception


Recommended Posts

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

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...