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

Jean-Pierre Ledure <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
                 CC|                            |[email protected]
             Status|UNCONFIRMED                 |NEW

--- Comment #1 from Jean-Pierre Ledure <[email protected]> ---
I confirm the bug in
Version: 25.2.0.3 (X86_64) / LibreOffice Community
Build ID: e1cf4a87eb02d755bce1a01209907ea5ddc8f069
CPU threads: 6; OS: Linux 6.8; UI render: default; VCL: kf5 (cairo+xcb)
Locale: fr-BE (en_US.UTF-8); UI: en-US
Calc: threaded

1) the given script is written in Python. The same behaviour is observed with
next Basic script:
Sub Main
    GlobalScope.BasicLibraries.loadLibrary("ScriptForge")
    myDoc = CreateScriptService("Calc", ThisComponent)
    last_row = myDoc.LastRow('Sheet1')
    MsgBox(last_row)
End Sub

2) The message about the JRE does not appear every time the document is opened
but only once per LO session. Whatever the answer to the message
(Yes/No/Cancel), the execution of the macro continues and ends normally.

3) I confirm Mike's comments. I am able to get a
com.sun.star.comp.scripting.ScriptProviderForBasic service with next code:
Sub XXX
        GlobalScope.BasicLibraries.loadLibrary("ScriptForge")
        GlobalScope.BasicLibraries.loadLibrary("XrayTool")
        factory =
getDefaultContext.getValueByName("/singletons/com.sun.star.script.browse.theBrowseNodeFactory")
        Set root =
factory.createView(com.sun.star.script.browse.BrowseNodeFactoryViewTypes.MACROORGANIZER)
        a = root.ChildNodes(0)  '       user
        b = a.ChildNodes(0)             '       Basic
        xray b  ' com.sun.star.comp.scripting.ScriptProviderForBasic
End Sub
However this gives the same message about the absence of a JRE.
I do not know a better way. Can someone make a suggestion to have a direct
access to that service ?

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to