Page 1 of 1

How to check OLE ?

Posted: Fri Jul 13, 2007 1:08 pm
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

Re: How to check OLE ?

Posted: Fri Jul 13, 2007 1:58 pm
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

Posted: Fri Jul 13, 2007 3:05 pm
by driessen
Enrico,

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

Thanks.

Posted: Fri Jul 13, 2007 3:12 pm
by Enrico Maria Giordano
Then what is the problem? Your user will not see the document at all and will cannot close it.

EMG