Reputation: 13
Whenever I place Imports System.Xml
above the rest of the code I get an error:
BASIC syntax error. Expected: Sub.
And when I place it inside any of the Subs I get another error:
BASIC syntax error. Unexpected symbol: Stop.
Are we even able to use Imports
in the code in Open Office?
Or do I need to import in one of the menus?
Upvotes: 0
Views: 216
Reputation: 13790
From my google search, Imports System.Xml
is for .NET technologies. Is StarBasic a .NET technology? No.
You can create projects in C# or VB.Net that use LibreOffice's UNO API.
Or maybe you want to know how to work with XML in a LibreOffice macro. In that case, there are many different answers. Personally I would create a Python-UNO macro and start with import xml.etree
. Alternatively, the UNO API provides access to the powerful XML libraries built into LibreOffice.
Upvotes: 0