Hi Philipp,

On 07/06/09 11:25, Vil wrote:
Hi,

I obviously stumbled across the new locking mechanism (which means I failed
at implementing it under 3.0 in the first place ;-))

My intention is to move a open document from one location to a new one.
What are the steps I have to make, in order to assure that there are no
references to the old file / location.

I thought of:
1) Storing the document at the new location (xStorable.storeAsURL(..))
2) and Deleteing the old file. (oldFile.delete();)
xStorable.storeAsURL(..) should let the document completely switch to the new location. That means the office should not lock the old file any more. If it happens, it is a bug.

This doesnt work anymore.
Which version of the OOo are you using ( in which version it works, and in which does not )?

Should I close the stored file before trying to delete the old one ?
(".uno:CloseDoc")
If there is a bug in OOo that could probably help as a workaround.

Best regards,
Mikhail.

Thank you in advance,
Philipp



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to