Italian excel xlsx

3394509365

Active Member
Licensed User
Longtime User
sto provando questo codice di Erel
questo per aprire un file excel .xls

Sto usando B4A
Ho caricato la lbreria Jxl.jar

Il codice funziona cioè mi apre il file 1.xls

Sto però tentando di aprire un file xlsx e mi da il seguente errore.
B4X:
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = false **
** Activity (main) Resume **
Error occurred on line: 54 (Main)
jxl.read.biff.BiffException: Unable to recognize OLE stream
    at jxl.read.biff.CompoundFile.<init>(CompoundFile.java:116)
    at jxl.read.biff.File.<init>(File.java:127)
    at jxl.Workbook.getWorkbook(Workbook.java:268)
    at anywheresoftware.b4a.objects.WorkbookWrapper.Initialize(WorkbookWrapper.java:61)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.shell.Shell.runVoidMethod(Shell.java:777)
    at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:354)
    at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:255)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:144)
    at anywheresoftware.b4a.BA$1.run(BA.java:352)
    at android.os.Handler.handleCallback(Handler.java:808)
    at android.os.Handler.dispatchMessage(Handler.java:101)
    at android.os.Looper.loop(Looper.java:166)
    at android.app.ActivityThread.main(ActivityThread.java:7529)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:245)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:921)
 

Star-Dust

Expert
Licensed User
Longtime User
Non supporta i nuovi formati
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…