Wen Shen wrote: > Thanks for the quick repsonse > > Ya, I tried it. > The new codes are: > Dim loadArgs(1) as New com.sun.star.beans.PropertyValue > loadArgs(0).Name = "MacroExecutionMode" > loadArgs(0).Value = 4 > loadArgs(1).Name = "ReadOnly" > loadArgs(1).Value = False > Doc = > StarDesktop.loadComponentFromURL(getOOURL(targetQuestion), "aFrame", > com.sun.star.frame.FrameSearchFlag.GLOBAL, loadArgs()) > > This did not solve the problem. I still got the same error message. > Hm, if I open the URL (the first pararmeter) directly by openoffice, it > is opened with read/write. > Also, if I set ReadOnly to True, the file can be opened in readonly > mode. Therefore, the URL itself > should be fine. Don't know why the error message said the URL seems not > to be supported.
We already heard that opening files via http or ftp with loadComponentFromURL always ends up in a readonly document. The problem is under investigation. Best regards, Mathias -- Mathias Bauer - OpenOffice.org Application Framework Project Lead Please reply to the list only, [EMAIL PROTECTED] is a spam sink. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
