How to check OLE ?

How to check OLE ?

Postby driessen » Fri Jul 13, 2007 1: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. 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

Re: How to check OLE ?

Postby Enrico Maria Giordano » Fri Jul 13, 2007 1: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
User avatar
Enrico Maria Giordano
 
Posts: 8718
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Postby driessen » Fri Jul 13, 2007 3: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. 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 Enrico Maria Giordano » Fri Jul 13, 2007 3:12 pm

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

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8718
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 57 guests