.net LibreOffice Handle is not initialized exception

Creating a macro - Writing a Script - Using the API (OpenOffice Basic, Python, BeanShell, JavaScript)
Post Reply
sidrasaeen
Posts: 1
Joined: Sat Oct 22, 2022 1:47 pm

.net LibreOffice Handle is not initialized exception

Post by sidrasaeen »

Our team updated an existing WinForm application to .net 6. Since this update we cannot open files with open office anymore. The SDK cannot be initialized anymore. The following code throws an exception:

unoidl.com.sun.star.uno.XComponentContext m_xContext = uno.util.Bootstrap.bootstrap();
exception: System.InvalidOperationException: 'Handle is not initialized.'

With the old version ( 4.8 everything works fine) I already found two articles about it, but without any workaround/solution: https://www.mail-archive.com/libreoffic ... 64920.html https://bugs.documentfoundation.org/sho ... ?id=1488578
OpenOffice 3.1 on Windows 10
Bill
Volunteer
Posts: 8934
Joined: Sat Nov 24, 2007 6:48 am

Re: .net LibreOffice Handle is not initialized exception

Post by Bill »

Are you using the antique OpenOffice 3.1 shown in your signature or some version of LibreOffice?
AOO 4.1.14 on Ubuntu MATE 22.04
Post Reply