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: [email protected]
Reporter: [email protected]
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._______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs