Hi Michael,
Unfortunately there seems to be no way to detect from dispose listener
when the file is closed, because the disposing notification notifies
that the disposing is in progress. And the file will be closed after that.
By the way, the scenario you have described does not need to know
whether the file is still locked or not. Even if the file was opened byt
OOo for writing and was locked, it still can be opened for reading, that
should be enough to transfer the contents to the database.
Best Regards,
Mikhail.
Michael Jeier wrote:
Hi,
I have a listener on a Writer document, which gets triggered, when the
document gets closed by the user. The file should then be transferred to a
database, but it is still locked by OpenOffice. When I try to manually
dispose Writer in the event, OpenOffice crashes, which is not a surprise
considering that it is already disposing. Can I cancel the disposing or
release the file in another way?
Does anyone has an idea?? Thanks in advance!
Regards,
Michael
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]