Hello!
I've got a Problem with the registration of my Event-Handler since I installed 
OpenOffice.org 3.
My Basic script to register my simple Eventhandler seems to be obsolete and I 
dont find the correct fix for this.
I only want to capture the Close of my Document to sent a message to my 
application.


Here my old script (from an old OO example), which produces this Exception:

Type: com.sun.star.lang.IllegalArgumentException
Message: cannot coerce argument type during corereflection call!


Sub StartCloseListening()
 oDoc = ThisComponent
 oEventListener  = CreateUnoListener( "DocCloseListener_", 
"com.sun.star.lang.XEventListener" )
 oDoc.addEventListener( oEventListener  )  <--- Here comes the exception!!
End Sub

Sub DocCloseListener_disposing( oEvent )
 AutoClose()
End Sub


Thanks for Help

Alex P.

Reply via email to