Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

OLE Server Automation/Disconnecting from Word

Status
Not open for further replies.

nychic

Programmer
Nov 13, 2002
7
US
I am writing an application that connects to WORD using OLE Automation. The application works almost like a mail merge, opening a template, then populating it. I am wondering if it is possible to close the application, and disconnect my application from WORD, while keeping WORD and the document that was created open. I have a TWordDocument and a TWordApplication and connect the Document to the Word Application using:

WordDocument1->ConnectTo(WordApplication1->Documents->Open(oleTemplateName));

I have the ConnectKind for the WordApplication and the WordDocument set to ckNewInstance.

I may need to open multiple WORD documents in the course of using the application, and do not want them all to be closed when I exit my application....does anyone know of a way to do this??
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top