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
.net LibreOffice Handle is not initialized exception
-
- Posts: 1
- Joined: Sat Oct 22, 2022 1:47 pm
.net LibreOffice Handle is not initialized exception
OpenOffice 3.1 on Windows 10
Re: .net LibreOffice Handle is not initialized exception
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