B4J Question B4J unable to initialize WorkSheet

rossati

Active Member
Licensed User
Longtime User
Hi
I'm trying to use jExcel, but the last instruction
B4X:
        Dim Workbook As WritableWorkbook
        Log(fh_Data.Get("ExcelFile"))
        Workbook.Initialize("C:\Users\User\Desktop\", "porkon.xls")

gets this error:
java.lang.NoSuchMethodError: anywheresoftware.b4a.objects.streams.File.getDirInternalCache()Ljava/lang/String;
Thanks
 

amykonio

Active Member
Licensed User
Longtime User
Hi.

Can you replace the following:

B4X:
        Dim Workbook As WritableWorkbook
        Workbook.Initialize("C:\Users\User\Desktop\", "porkon.xls")
Thanks

with:

B4X:
        Dim Workbook As WritableWorkbook
        Workbook.Initialize("C:\Users\User\Desktop", "porkon.xls")

Also, is there a reason you prefer to work with jExcel instead of jPoi?

Andreas.
 
Upvote 0

rossati

Active Member
Licensed User
Longtime User
Thanks Andreas

Also with your suggestions dosn't works. Searching in the net it seems there is a problem of old and new library.
The use of jExcel is random, I can try co jPoi.

John
 
Upvote 0

rossati

Active Member
Licensed User
Longtime User
Thanks Erel
Now I use jPoi although is heavy for my purpose.
I anticipate you that I'm going to start a new post on what seems to me an error in the management of the combo box events (B4J),
regards
 
Upvote 0
Top