Error on OLEINVOKE()

Error on OLEINVOKE()

Postby driessen » Thu Jun 14, 2007 7:51 pm

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. 24.07 - Harbour 3.2.0 (February 2024) - xHarbour Builder (January 2020) - Bcc773
User avatar
driessen
 
Posts: 1422
Joined: Mon Oct 10, 2005 11:26 am
Location: Genk, Belgium

Postby Antonio Linares » Thu Jun 14, 2007 8:01 pm

Michel,

You could use a:
Code: Select all  Expand view
TRY
   OleInvoke( ... )
CATCH
   MsgAlert( "there is an error" )
END
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42078
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 53 guests