I am unable to run this code on the MAC. It works fine in Windows. From the documentation,
https://www.b4x.com/android/forum/threads/xlutils-creating-ms-word-documents.131732/#content
It runs fine when you run from the IDE but errors when it is packaged. The specific line that errors is
https://www.b4x.com/android/forum/threads/xlutils-creating-ms-word-documents.131732/#content
B4X:
Dim wd As WordUtils
wd.Initialize
Dim doc As WordDocument = wd.CreateDocument
doc.Append($"[p]Word document with two lines.
This is the second line.[/p]"$)
Dim f As String = doc.SaveAs(File.DirApp, "1.docx", True)
It runs fine when you run from the IDE but errors when it is packaged. The specific line that errors is
B4X:
Dim doc As WordDocument = wd.CreateDocument