B4J Question Error MAC OpenExcel (XLUtils)

MarcoRome

Expert
Licensed User
Longtime User
Hi Erel, All.
All run on Windows but if i open excel file with
B4X:
Wait For (xl.OpenExcel(nomefile)) Complete (Success As Boolean)
Then App on MAC crash ( Error in debug: no found cmd.exe )

Work without problem if i use:
B4X:
fx.ShowExternalDocument(File.GetUri(File.DirApp, nomefile))

WORK ON MAC
B4X:
            Dim nomefile As String = $"xxxx${DateTime.Date(DateTime.Now)}.xlsx"$
            wb.Save(File.DirApp, nomefile)
            wb.Close
            Sleep(1000)
            'OK FOR MAC
            fx.ShowExternalDocument(File.GetUri(File.DirApp, nomefile))
            cutils.ShowNotification3("",$"FILE CREATO CON IL NOME ${nomefile} PRESENTE NELLA CARTELLA:
            ${File.DirApp}"$, cutils.ICON_CONFIRM, MainForm, "BOTTOM_RIGHT", 9000)

CRASH ON MAC
B4X:
            Dim nomefile As String = $"xxxxx${DateTime.Date(DateTime.Now)}.xlsx"$
            wb.Save(File.DirApp, nomefile)
            wb.Close
            Sleep(1000)
            cutils.ShowNotification3("",$"FILE CREATO CON IL NOME ${nomefile} PRESENTE NELLA CARTELLA:
            ${File.DirApp}"$, cutils.ICON_CONFIRM, MainForm, "BOTTOM_RIGHT", 9000)
            Private xl As XLUtils
            xl.Initialize
            Wait For (xl.OpenExcel(nomefile)) Complete (Success As Boolean)
            Log("Eseguito")
 

walterf25

Expert
Licensed User
Longtime User
Then App on MAC crash ( Error in debug: no found cmd.exe )
There is no cmd.exe in MAC OS, you need to use whatever terminal name you are using on your Mac.
 
Upvote 0

MarcoRome

Expert
Licensed User
Longtime User
There is no cmd.exe in MAC OS, you need to use whatever terminal name you are using on your Mac.
Yes i know this. As you read in first post i dont use cmd.exe but only code in first post.l. think I it comes from this line
B4X:
Wait For (xl.OpenExcel(nomefile)) Complete (Success As Boolean)
 
Upvote 0

Chris2

Active Member
Licensed User
Longtime User
xlUtils.OpenExcel is windows only:
Image1.png
 
Upvote 0
Top