Trying to establish bridge between LibreOffice/ Visual Studi

Java, C++, C#, Delphi, ??? - Using the UNO bridges

Trying to establish bridge between LibreOffice/ Visual Studi

Postby Kouen » Mon May 11, 2020 2:05 am

Hello!, This is my second post :D , 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::star::uno::XComponentContext>(Reference<com::sun::star::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!
LibreOfFice 6.3.6 on Windows 10
Kouen
 
Posts: 7
Joined: Sat May 02, 2020 7:29 pm

Re: Trying to establish bridge between LibreOffice/ Visual S

Postby JeJe » Mon May 11, 2020 7:59 am

You likely won't have got an answer to your other thread because no-one here knows. I don't have a clue what you're doing but there's a similar sounding problem here that got answered - so that might be a better place to ask:

https://stackoverflow.com/questions/453 ... office-sdk
Openoffice 4.1.2
Windows 8
JeJe
Volunteer
 
Posts: 1042
Joined: Wed Mar 09, 2016 2:40 pm

Re: Trying to establish bridge between LibreOffice/ Visual S

Postby Kouen » Tue May 12, 2020 1:25 am

JeJe wrote:You likely won't have got an answer to your other thread because no-one here knows. I don't have a clue what you're doing but there's a similar sounding problem here that got answered - so that might be a better place to ask:

https://stackoverflow.com/questions/453 ... office-sdk


Thanks a lot JeJe for your reply. I will read the answer in stackoverflow. Kind regards!

EDIT: I have followed the answer´s steps without luck.
LibreOfFice 6.3.6 on Windows 10
Kouen
 
Posts: 7
Joined: Sat May 02, 2020 7:29 pm


Return to External Programs

Who is online

Users browsing this forum: No registered users and 1 guest