<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - Calling a method on a COM object should not require Type Library, it's optional."
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=122163">122163</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Calling a method on a COM object should not require Type Library, it's optional.
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>LibreOffice
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>6.3.0.0.alpha0+ Master
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Windows (All)
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>UNCONFIRMED
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>BASIC
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>libreoffice-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>himajin100000@gmail.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>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.

<a href="https://opengrok.libreoffice.org/xref/core/extensions/source/ole/oleobjw.cxx?r=a95815fa#238">https://opengrok.libreoffice.org/xref/core/extensions/source/ole/oleobjw.cxx?r=a95815fa#238</a>

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.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>