WinWord.exe was not destroyed when using OLECreateLinkToFile API

D

Dhina

Hi,

The API 'OleCreateLinkToFile' method was used to create a link to the Word
file. The instance of the WinWord.exe created by OLE method, during the above
mentioned method call is not destroyed properly, once the method execution
completed i.e (after creating a link to the document). This specifically
happened only when there is a Field (custom word field) added in the Word
document, where Track Changes is switched ON.

Problem with Word 2003 & 2007 (OS - All). Using Delphi environment.

Code Sample:

OleCreateFromFile(GUID_NULL, PWideChar(FileName), IOleObject, 1, nil, Self,
FStorage, FOleObject));

'Self' above refers to a OLEcontainer.

Thanks,

Dhina
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top