[Libreoffice-bugs] [Bug 92770] thisComponent is not valid during "Open Document" at startup in non-document macro

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Fri Aug 9 21:50:29 UTC 2019


https://bugs.documentfoundation.org/show_bug.cgi?id=92770

--- Comment #15 from Lionel Elie Mamane <lionel at mamane.lu> ---
Reproduced on 6.3.0.4 (Debian package).

(In reply to Buovjaga from comment #14)
> I get
> BASIC runtime error.
> Variable not defined.
> 
> for showThisComponent() even when opening the file with Low macro security
> setting.

I think you didn't follow the following step in the reproduction instructions:

Put in "My Macros" the following (beware bugzilla's word wrap):

Sub showThisComponent
        MsgBox "Macro in ""My Macros"": " & _
           
thisComponent.supportsService("com.sun.star.document.OfficeDocument")
End Sub

-- 
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/20190809/c67c50f3/attachment.html>


More information about the Libreoffice-bugs mailing list