mrakeshpl Posted November 21, 2019 Share Posted November 21, 2019 Problem StatementJasper Report Export to excel is not working when report name has special character.Report name : Test: Sample reportReport Id: test_sample_reportgetting error as below. I can get it corrected by changing removing the column : to space, but is there a configuration I can use the sheet name as report id.I am currently using 7.2.0, this used to work fine in previous release 5.4 Error MessageInvalid char : found at index (4) in sheet name 'Test: Sample report'[/code]Error Tracejava.lang.IllegalArgumentException: Invalid char : found at index (4) in sheet name 'Test: Sample report'' at org.apache.poi.ss.util.WorkbookUtil.validateSheetName(WorkbookUtil.java:153) at org.apache.poi.hssf.record.BoundSheetRecord.setSheetname(BoundSheetRecord.java:94) at org.apache.poi.hssf.model.InternalWorkbook.setSheetName(InternalWorkbook.java:530) at org.apache.poi.hssf.usermodel.HSSFWorkbook.createSheet(HSSFWorkbook.java:817) at net.sf.jasperreports.engine.export.JRXlsExporter.createSheet(JRXlsExporter.java:338) at net.sf.jasperreports.engine.export.JRXlsAbstractExporter.exportSheet(JRXlsAbstractExporter.java:1275) at net.sf.jasperreports.engine.export.JRXlsAbstractExporter.exportPage(JRXlsAbstractExporter.java:890) at net.sf.jasperreports.engine.export.JRXlsAbstractExporter.exportReportToStream(JRXlsAbstractExporter.java:837) at net.sf.jasperreports.engine.export.JRXlsAbstractExporter.exportReport(JRXlsAbstractExporter.java:687) at com.jaspersoft.jasperserver.war.action.ReportExcelExporter.export(ReportExcelExporter.java:126) at com.jaspersoft.jasperserver.war.action.Abstr[/code] Link to comment Share on other sites More sharing options...
vchiem Posted November 22, 2019 Share Posted November 22, 2019 Special characters in report names will give problems when export to excel. We know about this and was reported as a defect from 6.x onwards but it hasn't been fixed yet. Apart from removing it from the name, I am not aware of any other workarounds. 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