I found another solution... Open new blank documents and "remotely"
change them, and then save them

Joan

-----Mensaje original-----
De: Mathias Bauer [mailto:[EMAIL PROTECTED]
Enviado el: viernes, 02 de febrero de 2007 16:11
Para: [email protected]
Asunto: Re: [api-dev] Opening multiple documents (not read-only)

Alamo Vallejo, Joan schrieb:

> Hi everybody!
>
> I have a base document which I save with different names (each time
I'll
> do small changes in it) and then I want to open them so the user can
> make any final changes... The problem is that when I open the
documents
> the last one is read-only... Any idea of why this is happening? And
most
> of it... any idea of how should I do it to have all my new documents
> opened and writable?

The document you used for saving is still open so it can't be opened a
second time.

You have two options:

(1) close the file
(2) make sure that the document does have a unique location that is not
used for opening later

(1) means: call close(True) on the document you have used for storing
(2) means: call storeToURL(sURL) instead of storeAsURL so that the
document keeps its original location (or has none if it was freshly
created before). In this case it will stay modified in case it was so
before you started your storing loop.

Ciao,
Mathias

--
Mathias Bauer (mba) - Project Lead OpenOffice.org Writer
OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS
Please don't reply to "[EMAIL PROTECTED]".
I use it for the OOo lists and only rarely read other mails sent to it.

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


This e-mail may contain confidential or privileged information. Any unauthorised
copying, use or distribution of this information is strictly prohibited.

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

Reply via email to