Jump to content
JasperReports Library 7.0 is now available ×

to Create xls file


2004 IR Help

Recommended Posts

By: Allen Lin - allendarjer

to Create xls file

2004-03-01 07:35

dear all:

I wrote the following program segment.

===========

File file = new File(rootPath+"/saveFile/test.xls");

if(!file.isFile())

file.createNewFile();

try{

JasperPrint JP = JM.fillReport(loadPath, pars, conn);

JRSingleSheetXlsSaveContributor jss = new

JRSingleSheetXlsSaveContributor();

jss.save(JP, file);

}

catch (JRException jrex) {

System.out.println("error2");

}

 

==========

BUT it Throwable

 

java.io.InvalidClassException: dori.jasper.engine.base.JRBaseReport; local class

incompatible: stream classdesc serialVersionUID = 405, local class serialVersio

nUID = 502

 

Could someone please telling me what is the problem and how to solve it ?

 

 

 

 

 

By: Giulio Toffoli - gt78

RE: to Create xls file

2004-03-01 10:11

You are compiling your reports with a jasperreports library version newer than the version that you have in your deploy enviroment.

 

Giulio

 

 

 

 

By: Allen Lin - allendarjer

RE: to Create xls file

2004-03-03 23:25

thankyou

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...