mirko.schmalmak Posted May 23, 2018 Share Posted May 23, 2018 In Java im exporting a JasperPrint document via JRXlsExporter to Excel format.It works, but when I'm including an image, I get the error "net.sf.jasperreports.engine.JRException: The cell cannot be added.".I'm using these jars:jasperreports-6.5.1.jarjasperreports-chart-customizers-6.5.1.jarjasperreports-chart-themes-6.5.1.jarjasperreports-fonts-6.5.1.jarjasperreports-functions-6.5.1.jarjasperreports-javaflow-6.5.1.jarcommons-beanutils-1.9.3.jarcommons-collections-3.2.2.jarcommons-digester-2.1.jarjoda-time-2.9.9.jaritext-2.1.7.js6.jarpoi-3.15.jarcommons-codec-1.10.jarWhat is wrong? Link to comment Share on other sites More sharing options...
mirko.schmalmak Posted May 23, 2018 Author Share Posted May 23, 2018 P.S.: I've found this answer https://community.jaspersoft.com/questions/874366/jasper-export-image-xls-cell-cannot-be-added , but I've added commons-codec. And the graphics cannot be ignored. Link to comment Share on other sites More sharing options...
riodavid Posted May 24, 2018 Share Posted May 24, 2018 Try set [net.sf.jasperreports.export.xls.ignore.graphics] to [false] in your report properties. Link to comment Share on other sites More sharing options...
mirko.schmalmak Posted May 24, 2018 Author Share Posted May 24, 2018 Isn't there a chance to get an xls WITH graphics? Link to comment Share on other sites More sharing options...
dev_1313 Posted March 8, 2019 Share Posted March 8, 2019 I got the same problem. I fixed it by copying the file org.apache.commons.codec_1.9.0.v20170208-1614.jar from the folder "C:Program FilesTIBCOJaspersoft Studio-6.6.0plugins" to my deployment folder. 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