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.

Thanks
Wen

Hi,

did you try

Dim loadArgs(1) as New com.sun.star.beans.PropertyValue
and use loadArgs(0) and loadArgs(1) for the properties
let us know

Laurent



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to