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??
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??