Bug 122163 - Calling a method on a COM object should not require Type Library, it's optional.
Summary: Calling a method on a COM object should not require Type Library, it's optional.
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: BASIC (show other bugs)
Version:
(earliest affected)
6.3.0.0.alpha0+
Hardware: All Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Macro-Windows
  Show dependency treegraph
 
Reported: 2018-12-17 20:52 UTC by himajin100000
Modified: 2023-09-19 03:05 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Sample file for Steps to Reproduce (11.99 KB, application/vnd.ms-excel.sheet.macroEnabled.12)
2018-12-17 20:54 UTC, himajin100000
Details

Note You need to log in before you can comment on or make changes to this bug.
Description himajin100000 2018-12-17 20:52:14 UTC
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.
Comment 1 himajin100000 2018-12-17 20:54:13 UTC
Created attachment 147635 [details]
Sample file for Steps to Reproduce
Comment 2 Xisco Faulí 2019-01-21 18:44:20 UTC
Hello himajin100000,
Would you like to propose a fix in gerrit so core developers can review it ?
Comment 3 himajin100000 2019-01-21 19:42:49 UTC
https://gerrit.libreoffice.org/#/c/66700/
Comment 4 Xisco Faulí 2019-01-21 22:25:17 UTC
(In reply to himajin100000 from comment #3)
> https://gerrit.libreoffice.org/#/c/66700/

Nice!! Moving to ASSIGNED
Comment 5 Xisco Faulí 2019-04-30 10:06:23 UTC
Dear himajin100000@gmail.com,
This bug has been in ASSIGNED status for more than 3 months without any
activity. Resetting it to NEW.
Please assigned it back to yourself if you're still working on this.
Comment 6 QA Administrators 2021-09-18 03:26:41 UTC Comment hidden (obsolete)
Comment 7 QA Administrators 2023-09-19 03:05:51 UTC
Dear himajin100000,

To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year.

There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present.

If you have time, please do the following:

Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/

If the bug is present, please leave a comment that includes the information from Help - About LibreOffice.
 
If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice.

Please DO NOT

Update the version field
Reply via email (please reply directly on the bug tracker)
Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not 
appropriate in this case)


If you want to do more to help you can test to see if your issue is a REGRESSION. To do so:
1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from https://downloadarchive.documentfoundation.org/libreoffice/old/

2. Test your bug
3. Leave a comment with your results.
4a. If the bug was present with 3.3 - set version to 'inherited from OOo';
4b. If the bug was not present in 3.3 - add 'regression' to keyword


Feel free to come ask questions or to say hello in our QA chat: https://web.libera.chat/?settings=#libreoffice-qa

Thank you for helping us make LibreOffice even better for everyone!

Warm Regards,
QA Team

MassPing-UntouchedBug