OPCPackage opcpackage = sheet.getWorkbook().getPackage();
int i = opcpackage.getUnusedPartIndex("/customProperty#.bin");
Im using Apache poi -3.17 and ooxml-schemas-1.3.jar and want to write Custom properties to Worksheet and Im Stuck with this Error.
The method getUnusedPartIndex(String) is undefined for the type Object
Note : getUnusedPartIndex method is compatible in latest Version of Poi i.e apache poi 4.1.2
Please Suggest an Alternative Method to getUnusedPartIndex so as to Get an unused part index based on the namePattern, which doesn't exist yet and has the lowest positive index in Apache Poi 3.17