Application.OnDocumentOpened Imprimir este apartado Página anterior Subir un nivel Página siguiente

Inicio >  Referencia del programador > Application API > Interfaces > Application > Events >


See also


Event: OnDocumentOpened(objDocument as Document)



This event gets fired whenever a document opens in XMLSpy. This can happen due to opening a file with the OpenFile or OpenURL dialog, creating a new file or dropping a file onto XMLSpy. The new document gets passed as parameter. The operation cannot be canceled.



Given below are examples of how this event can be scripted.


XMLSpy scripting environment - VBScript:

Function On_OpenDocument(objDocument)

End Function


XMLSpy scripting environment - JScript:

function On_OpenDocument(objDocument)




XMLSpy IDE Plugin:

IXMLSpyPlugIn.OnEvent (7, ...)        // nEventId = 7




© 2019 Altova GmbH