Hello community,
I just started experiementing with the amazing Excel library that is XLUtils to use with a project at work.
However, I hit a wall when I wanted to abstract and group some functionality inside my own class. The Excel claims the files that are saved are corrupted.
This is my simplest test:
If I run
From the main code module it works fine,
If I run it e.g. in a class initializer it produces the corrupt excel file.
So does that mean XLUtils can't run from class module and if so how can I solve this? Has it to do with some form of threading or is this a bug?
Many thanks in advance!
Christian
I just started experiementing with the amazing Excel library that is XLUtils to use with a project at work.
However, I hit a wall when I wanted to abstract and group some functionality inside my own class. The Excel claims the files that are saved are corrupted.
This is my simplest test:
If I run
B4X:
Dim Workbook1 As XLWorkbookWriter = XL.CreateWriterBlank
Dim sheet1 As XLSheetWriter = Workbook.CreateSheetWriterByName("Sheet1")
sheet1.PutString(XL.AddressOne("A",1), "lol")
Workbook1.SaveAs(File.DirApp, "mytest.xlsx",False)
From the main code module it works fine,
If I run it e.g. in a class initializer it produces the corrupt excel file.
So does that mean XLUtils can't run from class module and if so how can I solve this? Has it to do with some form of threading or is this a bug?
Many thanks in advance!
Christian