Jump to content
JasperReports Library 7.0 is now available ×

sharing violation on .xls report


2005 IR Help

Recommended Posts

By: Yuriy Stepanyuk - ystep

sharing violation on .xls report

2003-03-14 10:30

Hi.

After .jrprint converted to .xls I can not delete .xls file because of sharing violation exception.

With all other formats including .csv I do not have any problem.

Hear is my procedure:

 

public void SaveAsXLS()throws Exception{

File sourceFile = new File (getAbsReportFilePathNoType()+".jrprint");

JasperPrint jasperPrint = (JasperPrint)JRLoader.loadObject(sourceFile);

File destFile = new File(getAbsReportFilePathNoType()+".xls");

JRXlsExporter exporter = new JRXlsExporter();

exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);

exporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, destFile.toString());

exporter.setParameter(JRXlsExporterParameter.IS_ONE_PAGE_PER_SHEET, Boolean.FALSE);

exporter.exportReport();

};

 

Is it a bug?

Or I am doing something worng.

 

Thanks

Yuriy

 

 

 

 

By: Teodor Danciu - teodord

RE: sharing violation on .xls report

2004-04-30 03:13

 

Hi,

 

This was probably a bug.

Try a newer version of JR.

 

Thank you,

Teodor

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