ApachePOI3.17表级customproperties

s2j5cfk0  于 2021-06-29  发布在  Java
关注(0)|答案(0)|浏览(216)
OPCPackage opcpackage = sheet.getWorkbook().getPackage();
  int i = opcpackage.getUnusedPartIndex("/customProperty#.bin");

我正在使用ApachePOI-3.17和ooxml-schemas-1.3.jar,并希望将自定义属性写入工作表,我遇到了这个错误。

The method getUnusedPartIndex(String) is undefined for the type Object

注意:getunusedpartindex方法与最新版本的poi(即ApachePOI4.1.2)兼容
请建议getunusedpartindex的另一种方法,以便基于namepattern获取未使用的部分索引,该部分索引尚不存在,并且在ApachePOI3.17中具有最低的正索引

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题