FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour How to check OLE ?
Posts: 1467
Joined: Mon Oct 10, 2005 11:26 AM
How to check OLE ?
Posted: Fri Jul 13, 2007 01:08 PM

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. 25.12 - Harbour 3.2.0 (May 2025) - xHarbour Builder (January 2020) - Bcc773

Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: How to check OLE ?
Posted: Fri Jul 13, 2007 01:58 PM

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

Posts: 1467
Joined: Mon Oct 10, 2005 11:26 AM
How to check OLE ?
Posted: Fri Jul 13, 2007 03:05 PM

Enrico,

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

Thanks.

Regards,

Michel D.
Genk (Belgium)


_____________________________________________________________________________________________

I use : FiveWin for (x)Harbour v. 25.12 - Harbour 3.2.0 (May 2025) - xHarbour Builder (January 2020) - Bcc773

Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
How to check OLE ?
Posted: Fri Jul 13, 2007 03:12 PM

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

EMG

Continue the discussion