Hi Maxime,
Maxime Thieu wrote:
in Basic, (macro ooo), this does not work:
Dim loadArgs(2) as New com.sun.star.beans.PropertyValue
loadArgs(1).Name = "MacroExecutionMode"
loadArgs(1).Value = 4
loadArgs(2).Name = "ReadOnly"
loadArgs(2).Value = False
StarDesktop.LoadComponentFromURL("http://localhost:8080/docs/toto.odt",
"_blank", 0, loadArgs())
--> Exception : com.star.lang.IllegalArgumentException
Message: URL seems to be an unsupported one
But this work:
Dim loadArgs(2) as New com.sun.star.beans.PropertyValue
loadArgs(1).Name = "MacroExecutionMode"
loadArgs(1).Value = 4
loadArgs(2).Name = "ReadOnly"
loadArgs(2).Value = True
StarDesktop.LoadComponentFromURL("http://localhost:8080/docs/toto.odt",
"_blank", 0, loadArgs())
with read-only true value (and the doc is in read-only mode, which I
don't want...)
It's like the readOnly Variable can not have value false...
I am missing something ?
sorry, but I have got no clue of this Basic :-(
Is this file generally writeable?
hm...must be otherwise you couldn't edit it from the GUI.
Maybe you something like rights to open writeable via Macro...
I have got no idea anymore.
I have made some tests and with ooo version 1.79.104, the remote
document is no more opened in 'edit' mode with the GUI... (only
read-only...) This is odd...
maybe someone else can help for this...
Best Regards,
Markus
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]