Information générale
Catégorie:
COM/DCOM et OLE Automation
Titre:
Automating MSWord issue
Versions des environnements
I notice that when i moved to version MSWord 2010, release the spawned word session is not so clean. I am doing something like the following....
WordObj = CREATEOBJECT("Word.Application")
#define wdDoNotSaveChanges 0
WordObj.documents.open("&lcDoc.")
~~~ manipulate and save doc
RELEASE WordObj
Sometimes i see WINWORD in the Processes tab of TaskMgr after the automation session has ended. Is there a better, more reliable way of making sure the word session is released?
Also, is there a setting in MSWord that allows me to avoid the Word startup message that asks for me to decide what to do with documents due to a prior error with MSWord? That presents a problem when i initiate another Word session after an earlier attempt encountered some kind of problem.
Thanks.
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement