rb5h Posted December 10, 2010 Share Posted December 10, 2010 Hello,I am new with Jasperreports. I successfully generated an xlsx file but when I open it, I get the following message "unreadable data".I am using JRXlsxExporter.The file size is 888Kb.I am using Jasperreports 3.7.6 and POI 3.7. I do not have this problem with JRXlsExporter. Is it possible that the problem was solved for XLS but not for XLSX? Thanks.Code:JRXlsxExporter exporterX = new JRXlsxExporter();exporterX.setParameter(JRExporterParameter.INPUT_FILE_NAME, destFileName);exporterX.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, destFileName.replace("jrprint", "xlsx"));exporterX.setParameter(JRXlsExporterParameter.IS_DETECT_CELL_TYPE, Boolean.TRUE); 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