Trying to establish bridge between LibreOffice/ Visual Studi
Posted: Mon May 11, 2020 2:05 am
Hello!, This is my second post
, I am trying to make some kind of bridge between Visual Studio (Visual Basic Programming) and LibreOffice, and i dont know what is wrong about my procedure but it gives me an exception in the Bootstrap() command
the steps i Followed are:
1) installed Libreoffice 6.3.6 x86
2) Installed Libreoffice SDK 6.3.6
3) Installed Mingw Msys Cygwin apps (sed, Make, zip)
4) installed Visual Studio 2019
5) ran setenvironment located in main sdk folder
6) set Basic System Variables , Like UNO_PATH, and so on according to the developers guide
7) created a solution for console app visual basic in visual studio 2019
8) load the VB.NET example in SDK folder Writerdemo.vb
9) set the custom compiler option to VBASupport="1"
10) set the working framework to .NET framework 3.1
11) set the arhitecture to x86
12) ran soffice
13) clean build and rebuild from VS 2019
14) run debug
and it throws me an exception
System.InvalidOperationException
HResult=0x80131509
Message=Handle is not initialized.
Source=System.Private.CoreLib
StackTrace:
at System.ThrowHelper.ThrowInvalidOperationException_HandleIsNotInitialized()
at System.Runtime.InteropServices.GCHandle.FromIntPtr(IntPtr value)
at uno.util.to_cli<class com::sun:
:uno::XComponentContext>(Reference<com::sun:
:uno::XComponentContext>* x)
at uno.util.Bootstrap.bootstrap()
at TestingLO.Program.Main(String[] args) in C:\Users\Hubble\source\repos\TLO\TestingLO\Program.vb:line 47
I am a Newbie developing on top of libreoffice, and any help would be greatly appreciated.
Thanks in advance.!
Regards!
the steps i Followed are:
1) installed Libreoffice 6.3.6 x86
2) Installed Libreoffice SDK 6.3.6
3) Installed Mingw Msys Cygwin apps (sed, Make, zip)
4) installed Visual Studio 2019
5) ran setenvironment located in main sdk folder
6) set Basic System Variables , Like UNO_PATH, and so on according to the developers guide
7) created a solution for console app visual basic in visual studio 2019
8) load the VB.NET example in SDK folder Writerdemo.vb
9) set the custom compiler option to VBASupport="1"
10) set the working framework to .NET framework 3.1
11) set the arhitecture to x86
12) ran soffice
13) clean build and rebuild from VS 2019
14) run debug
and it throws me an exception
System.InvalidOperationException
HResult=0x80131509
Message=Handle is not initialized.
Source=System.Private.CoreLib
StackTrace:
at System.ThrowHelper.ThrowInvalidOperationException_HandleIsNotInitialized()
at System.Runtime.InteropServices.GCHandle.FromIntPtr(IntPtr value)
at uno.util.to_cli<class com::sun:
at uno.util.Bootstrap.bootstrap()
at TestingLO.Program.Main(String[] args) in C:\Users\Hubble\source\repos\TLO\TestingLO\Program.vb:line 47
I am a Newbie developing on top of libreoffice, and any help would be greatly appreciated.
Thanks in advance.!
Regards!