[英]How to avoid 'Allowable column range for BIFF8 is (0..255) or ('A'..'IV')' error during export to Excel format using JasperReports
During export report as Excel sheet via JRXlsExporter I got the error: Invalid column index (256). Allowable column range for BIFF8 is (0..255) or ('A'..'IV')
通过JRXlsExporter将报表导出为Excel工作表时,出现错误: Invalid column index (256). Allowable column range for BIFF8 is (0..255) or ('A'..'IV')
Invalid column index (256). Allowable column range for BIFF8 is (0..255) or ('A'..'IV')
. Invalid column index (256). Allowable column range for BIFF8 is (0..255) or ('A'..'IV')
。 How to fix this issue? 如何解决这个问题?
JasperReports is using Apache POI library for exporting reports to MS Excel format. JasperReports使用Apache POI库将报告导出为MS Excel格式。
The engine has several exporters for proceeding export to MS Excel format: 该引擎有多个导出器,可以继续导出为MS Excel格式:
The old versions of MS Excel have limitation of using less than 257 columns at workbook. MS Excel的旧版本在工作簿上使用少于257列的限制。 The new versions (2007+) have the new limitation: 16 384 columns. 新版本(2007+)具有新的限制: 16 384列。
The JRXlsxExporter uses the API (based on XSSF ) that allow to export report in a new format ( .xlsx ). JRXlsxExporter使用API(基于XSSF )允许以新格式( .xlsx )导出报告。 The JRXlsExporter is using HSSF implementation of Apache POI . JRXlsExporter正在使用Apache POI的 HSSF实现。
To avoid this error it is enough to use JRXlsxExporter . 为了避免此错误,使用JRXlsxExporter足够了。
More info: 更多信息:
POI-HSSF and POI-XSSF - common description of two approaches POI-HSSF和POI-XSSF-两种方法的共同描述
How to get more than 255 columns in an excel sheet using Apache POI 3.6 - nice post about columns limitations 如何使用Apache POI 3.6在Excel工作表中获取超过255列 -有关列限制的不错文章
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.