Hi, Daniel Käfer wrote:
> Hello, > > I try to open a document. In the Path are whitespace. I replace the > whitespace with '%20', for example > file:///C:/Dokumente%20und%20Einstellungen/twc/TWC/Documents/1258539328921.odt. > > If the ReadOnly property is true or the property is not set, it works > well. If the property ist false a IllegalArgumentException is throw. are you sure that you have write access to the file? Can you open it for editing with the same instance of OOo with the same OOo user profile that you are using for your loadComponentFromURL call? > The complete call is: > > PropertyValue[] properties = new PropertyValue[1]; > properties[0] = new PropertyValue(); > properties[0].Name = "Hidden"; > properties[0].Value = Boolean.valueOf(false); Are you talking about "ReadOnly" or about "Hidden"? Regards, Mathias -- Mathias Bauer (mba) - Project Lead OpenOffice.org Writer OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS Please don't reply to "nospamfor...@gmx.de". I use it for the OOo lists and only rarely read other mails sent to it. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org For additional commands, e-mail: dev-h...@api.openoffice.org