[英]How to create a pivot table with xssf using apache poi?
我已将 apache-poi 从 3.14 更新到 4.1.0,其中 4.1.x 版本提供方法 addColLabel(columnIndex)。 使用 addColLabel(columnIndex) 允许将 select 特定列作为 pivot 表创建的列字段。
代码:
pivotTable.addReportFilter( 12 );
pivotTable.addReportFilter( 13 );
pivotTable.addRowLabel( 11 );
pivotTable.addColLabel( 0 );
pivotTable.addColumnLabel( DataConsolidateFunction.SUM, 15 );
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.