Error on OLEINVOKE()

Post Reply
User avatar
driessen
Posts: 1239
Joined: Mon Oct 10, 2005 11:26 am
Location: Genk, Belgium

Error on OLEINVOKE()

Post 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.
Regards,

Michel D.
Genk (Belgium)
_____________________________________________________________________________________________
I use : FiveWin for (x)Harbour v. 21.01 - Harbour 3.2.0 (October 2020) - xHarbour Builder (January 2020) - Bcc7
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Michel,

You could use a:

Code: Select all

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

Antonio Linares
www.fivetechsoft.com
Post Reply