Hi,
Powerbuilder 2019 Build 2170.
We are getting problems on exports DW to XLSX! format, sometimes the application crash, we have included TRY..CATCH blocks and we don´t know how to catch the error.
A simple Test.
- Create a external DW with only a field:
- And I run the following code (we are assigning a directory that does not exist):
int li_ret
datastore lds_exp
lds_exp = create datastore
lds_exp.DataObject = "d_prueba_xlsx"
TRY
li_ret = lds_exp.saveas("c:\directory_not_exists\test.xlsx", XLSX!, true)
CATCH (runtimeError e)
messagebox("Atención", "RuntimeError")
END TRY
if li_ret < 0 then
MessageBox("Error", "Error al exportar en formato XLSX")
end if
- RESULT: The app CRASHES, and I can´t catch the error.
if I use TEXT! or EXCEL8! saveas format, the app works OK, returns -1 and doesn´t CRASH.
¿Is there any way to capture errors on DW SaveAs to XLSX! exceptions?
Regards,
Julian.