Page 1 of 1

Error on OLEINVOKE()

Posted: Thu Jun 14, 2007 7:51 pm
by driessen
Hello,

I use OLE to make a connection between my application and Word.

If the connection is broken, I got an error when using OLEINVOKE().

Is there a way to prevent this error to happen ?

If yes, how ?

Thanks a lot in advance.

Posted: Thu Jun 14, 2007 8:01 pm
by Antonio Linares
Michel,

You could use a:

Code: Select all

TRY
   OleInvoke( ... )
CATCH
   MsgAlert( "there is an error" )
END