Hello Michael,
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!
It depends from the type of listener you registered ...
If you used an css.util.XCloseListener you can hinder the document from
being closed by throwing a veto exception in method
XCloseListener.queryClosing(). But if you called within method
XCloseListener.notifyClosing() it's to late .-)
If you registered a normal css.lang.XEventListener its not possible at all.
Please note: independed from the type of listener you use ...
You shouldnt start closing the document by yourself within those special
listener callback. You should accept or reject close requests only - the
rest is done by the document itself. Otherwhise it will crash - as you
saw it already .-)
Regards,
Michael
Regards
Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]