Hi,
I have managed to add a close listener on a document with addCloseListener. I get the queryClosing notification successfully, but in some scenarios I would like to prevent closing by throwing a CloseVetoException inside it (as per the documentation). However, I am using OLE Automation (Delphi) and I can’t figure out how to go about throwing a CloseVetoException. If I raise a Delphi exception (like EOLEError) it is ignored and the document is closed anyway. Does anyone know how to veto the closing of a frame from inside queryClosing using the OLE Automation bridge?
Thanks!