Winfried Donkers wrote:
Hi all,
I use basic scripts in our ERP system to open, create, modify, etc. Calc documents.
This worked fine with LibreOffice for years till version 5.1.
The LO-part of the scripts start with the line
Set oServiceManager = CreateObject( "com.sun.star.ServiceManager" )
With LO version 5.1 this line produces an error (Err.Number is -2147418113, F8000FFFF).
There are no changes in the ERP system nor in the scripts, everything still works fine on
machines with LO 5.0. Only the machines with LO 5.1 have this problem.
I couldn't find anything related in the release notes for version 5.1.
What has changed and what can I do to get the scripts working again with LibreOffice?
According to Andrew Pitonyak's documentation, the way to get the service manager is
oServiceMgr = GetProcessServiceManager()
Maybe you could try that.
--
Piet van Oostrum <piet@vanoostrum.org>
WWW: http://pietvanoostrum.com/
PGP key: [8DAE142BE17999C4]
Context
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.