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

Excel Error in Linux


bcaramu

Recommended Posts

Hi,

 

I written below code create excel file. the excel file was created successfully in both environments like windows & Linux.  Created excel file is opening without any errors in Windows execution. But when am opening file created in LInux execution file getting error like below

 

Microsoft Office Excel File Repair Log

Errors were detected in file 'C:Documents and Settingsramakrishna.gLocal SettingsTemporary Internet FilesOLKD8CMC_CreditOne_200812302326_902.xls'
The following is a list of repairs:

Damage to the file was so extensive that repairs were not possible. Excel attempted to recover your formulas and values, but some data may have been lost or corrupted.

Code:
JRXlsExporter exporter = new JRXlsExporter();exporter.setParameter(JRExporterParameter.JASPER_PRINT,	print);File destFile = new File(exportLocation, reportName + "."+ EXTENSION_XLS);exporter.setParameter(JRExporterParameter.OUTPUT_FILE,destFile);exporter.setParameter(JRXlsExporterParameter.IS_IGNORE_CELL_BORDER,Boolean.TRUE);exporter.setParameter(JRXlsExporterParameter.IS_REMOVE_EMPTY_SPACE_BETWEEN_ROWS,Boolean.TRUE);exporter.setParameter(JRXlsExporterParameter.IS_WHITE_PAGE_BACKGROUND,Boolean.FALSE);exporter.setParameter(JRXlsExporterParameter.IGNORE_PAGE_MARGINS,Boolean.TRUE);exporter.exportReport();exportedFile = exportLocation + "" + reportName + "."+ EXTENSION_XLS;	
Link to comment
Share on other sites

  • Replies 6
  • Created
  • Last Reply

Top Posters In This Topic

"Microsoft Office Excel File Repair Log

Errors were detected in file 'file.xls'
The following is a list of repairs:

Damage to the file was so extensive that repairs were not possible. Excel attempted to recover your formulas and values, but some data may have been lost or corrupted."

This is not an error isolated to Linux. I'm using Ireport for Netbeans on the Windows platform. I noticed that this error usually occurs on the newer version of Ireport. For older version of ireport, this error doesn't occur.

Link to comment
Share on other sites

  • 1 month later...
  • 2 months later...
  • 3 months later...

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