The WriterDemo example uses VB.NET to interact with the UNO API. (The files are also included with the SDK download in file:///C:/Program Files/LibreOffice 5/sdk/examples/CLI/VB.NET/WriterDemo/
.)
To build and run, I set up the command line environment according to https://api.libreoffice.org/docs/install.html, and then executed the Makefile using make WriterDemo.run
. But it crashes on this line:
xContext = Bootstrap.bootstrap()
The error message:
Unhandled Exception: System.Runtime.InteropServices.SEHException: External component has thrown an exception.
at cppu.bootstrap(Reference<com::sun::star::uno::XComponentContext>* )
at uno.util.Bootstrap.bootstrap()
at WriterDemo.Main()
make: *** [WriterDemo.run] Error -1066598274
This is a followup of the question Equivalent of Microsoft.Office.Interop.Excel for Open Office and/or Libre Office for VB.NET/Visual Studio 2017.