Hi!
I am running this Scriptforge code:
from scriptforge import CreateScriptService
def msgbox_last_row(*args):
bas = CreateScriptService("Basic")
myDoc = CreateScriptService("Calc", bas.ThisComponent)
last_row = myDoc.LastRow('Sheet1')
bas.MsgBox(last_row)
The case is that, every time the document is loaded and the script is executed, Libreoffice asks if I want to activate Java (JRE), since it is necessary to run the script.
However this is not true, since even if it is not activated and the message is closed, the code runs without problem.
I would like to know two things:
- Why is it asking me to activate it when using Scriptforge?
- How can I stop it from asking me to activate it every time I open the document? Even more so when I have this option explicitly disabled.
Thank you very much!!!