I can't solve the problem with B4JPackager 11 and POI "setAutoFilter" method. The code is quite simple and it works in debug and release mode and
don't work in B4JPackager
If I comment on the last line everything will work, but I need to set a filter
The necessary lines are added to Main :
don't work in B4JPackager
B4X:
Dim SheetObj As JavaObject =sheet1
SheetObj.RunMethod("createFreezePane",Array(0,2))
Dim CelReng As JavaObject
'Working in debug and release don't work B4JPackager
'CelReng = CelReng.InitializeStatic("org.apache.poi.ss.util.CellRangeAddress").RunMethod("valueOf", Array("2:2"))
'Working in debug and release and B4JPackager
CelReng.InitializeNewInstance("org.apache.poi.ss.util.CellRangeAddress",Array(1,1, 0, ResColumns.Size))
'Working in debug and relase don't work B4JPackager
SheetObj.RunMethod("setAutoFilter",Array(CelReng))
The necessary lines are added to Main :
B4X:
#PackagerProperty: AdditionalModuleInfoString = opens schemaorg_apache_xmlbeans.system.sD023D6490046BA0250A839A9AD24C443;
#PackagerProperty: IncludedModules = jdk.charsets