Libre office .Net Core integration

Ilya Sokolov is at rula-tech.com
Fri Aug 15 07:41:28 UTC 2025


Hello

I am trying to integrate Libre Office with an .Net Core application.

At first I have tried just to reference cli_ure.dll, cli_cppuhelper.dll,
etc libraries. However, there was the handle is not initialized error on
call

unoidl.com.sun.star.uno.XComponentContext m_xContext =
> uno.util.Bootstrap.bootstrap();


It is a known error and it is said that .Net SDK should be used.

However, the .Net SDK have some issues, which made its using rather hard,
e.g.:
https://lists.freedesktop.org/archives/libreoffice/2025-April/093177.html

Then I tried to reference the  cli_ure.dll, cli_cppuhelper.dll, etc
libraries from a .Net Standard 2 library, which is referenced from the .Net
Core application. I.e. the reference sequence is  .Net Core applciation->
.Net Standard 2 library-> Libre Office libraries (
cli_ure.dll, cli_cppuhelper.dll, etc ). However the handle is not
initialized error  on calling the bootstrap function appeared again.

So, I am rather stunned that any way of integrating with Libre Office is
unusable and I am asking advice what is the recommended way to use Libre
office from .Net Core application?

-- 
Best Regards,
Ilia Sokolov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice/attachments/20250815/e524a7d1/attachment.htm>


More information about the LibreOffice mailing list