S
Suren
Hi,
I have the following question. I’m writing the program in C++, which is
opening in background the Word document, modifying and then closing it. Till
now each document has been opened with separate Word application and after
modification has been closed:
CApplication objWord;
if(!objWord.CreateDispatch("Word.Application"))
......
CDocuments docs(objWord.get_Documents());
doc.AttachDispatch(docs.Open(....));
......
docs.Close(covFalse,covOptional,covOptional);
objWord.Quit(covFalse,covTrue,covFalse);
Now I want to open Word application only once, and then in consecutive order
open, manipulate and close the documents.
Of course I can check whether “winword.exe†process existing or not and also
read the PID, but how can I steer the document?
I have the following question. I’m writing the program in C++, which is
opening in background the Word document, modifying and then closing it. Till
now each document has been opened with separate Word application and after
modification has been closed:
CApplication objWord;
if(!objWord.CreateDispatch("Word.Application"))
......
CDocuments docs(objWord.get_Documents());
doc.AttachDispatch(docs.Open(....));
......
docs.Close(covFalse,covOptional,covOptional);
objWord.Quit(covFalse,covTrue,covFalse);
Now I want to open Word application only once, and then in consecutive order
open, manipulate and close the documents.
Of course I can check whether “winword.exe†process existing or not and also
read the PID, but how can I steer the document?