Hi,
Markus Daniel a �crit :
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?
Yes, the file is writeable ! If I open it from the GUI (in older version
like 1.9.79) it can be opened in edit mode... But when opened with the
macro or by a recent version of openoffice (like the 1.9.104) it's
opened read-only mode !!!
Is is a bug ? (Mathias Bauer suggest it...)
Maxime
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]