[Libreoffice-bugs] [Bug 122163] New: Calling a method on a COM object should not require Type Library, it's optional.
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Mon Dec 17 20:52:14 UTC 2018
https://bugs.documentfoundation.org/show_bug.cgi?id=122163
Bug ID: 122163
Summary: Calling a method on a COM object should not require
Type Library, it's optional.
Product: LibreOffice
Version: 6.3.0.0.alpha0+ Master
Hardware: All
OS: Windows (All)
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: BASIC
Assignee: libreoffice-bugs at lists.freedesktop.org
Reporter: himajin100000 at gmail.com
Description:
See steps to Reproduce
Steps to Reproduce:
0. Make sure you are using 32bit LibreOffice on Windows(not 64bit LibreOffice)
1. Open the attached document
2. Run Main() under VBAProject/Modules/Module1
Actual Results:
BASIC runtime error.
'1'
Type: com.sun.star.lang.IllegalArgumentException
Message: [automation bridge] The object does not have a function or readable
property "escape"
Expected Results:
%u3042
as Excel does.
Reproducible: Always
User Profile Reset: No
Additional Info:
ScriptControl's CodeObject property exists in Type Library but CodeObject's
escape does not.
https://opengrok.libreoffice.org/xref/core/extensions/source/ole/oleobjw.cxx?r=a95815fa#238
just as an experiment for my own environment, I wrote
ret = directInvoke( aFunctionName, aParams);
instead of current "throw;", and the code worked as expected.
similar thing may be needed for invokeGetProperty I guess.
I'm not that confident in writing good code, and waiting for some other person
to do, honestly.
--
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/20181217/bc3c2ffc/attachment-0001.html>
More information about the Libreoffice-bugs
mailing list