[Libreoffice-bugs] [Bug 94265] bootstrap exception when running C# application with LibreOffice API

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Sat Apr 7 00:41:33 UTC 2018


https://bugs.documentfoundation.org/show_bug.cgi?id=94265

--- Comment #37 from Cyril Waechter <cyrwae at hotmail.com> ---
Same issue for me on LO 6.0.2.1 64 bits win 10 using ironpython.
Following code fixed the `System.Runtime.InteropServices.SEHException` :
import os
lo_path = r"C:\Program Files\LibreOffice\program"
if lo_path not in os.environ["PATH"]:
    os.environ["PATH"] = "{}{};".format(os.environ["PATH"],lo_path)

But when running :
from uno.util import Bootstrap
xcontext = Bootstrap.bootstrap()

xcontext return an object instead of an XComponentContext but it is probably
not related (might be an ironpython issue).

case related here :
https://ask.libreoffice.org/en/question/149748/cli-what-replace-deprecated-bootstrap-lo-602/

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20180407/885f7406/attachment.html>


More information about the Libreoffice-bugs mailing list