How to check OLE ?

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

How to check OLE ?

Post by driessen »

Hello,

I use OLE to build a connection between my appliction and MS-Word.

I make the OLE-connection when my application is started. The Word-window becomes active when necessary. If I quit my application, the OLE-connection is broken en Word is closed.

So far so good, except when the use closes Word manually.

How can I check if the OLE-connetion is still OK ? Be careful : just checking if Word is opened, is not good enough. Word can be opened by the user manually which doesn't repair the OLE-connection.

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
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Re: How to check OLE ?

Post by Enrico Maria Giordano »

I think you should follow one of two ways:

1. is your app that creates, fills, prints and closes the document.

2. as point 1 but your app doesn't close the document but shows it and leaves the rest to the user.

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

Post by driessen »

Enrico,

My application creates, fills, prints and closes the document.

Thanks.
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
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Post by Enrico Maria Giordano »

Then what is the problem? Your user will not see the document at all and will cannot close it.

EMG
Post Reply