Information générale
Catégorie:
COM/DCOM et OLE Automation
>>>Hello,
>>>
>>>I have a program that converts all .TXT output into .DOC format. If the user has the Word Applicatin left open in his/her desktop (and working on his/her documents while the program is running) how may I have the active documents created by the program while executing invisible? I tried oWord.ActiveDocument.Visible = .F. but I got an error message (0x80020006). I tried oWord.Visible but then it wouldn't let the user continue working on his/her document (nothing to do with the program). I tried CreateObject to open another Word Application but then the program (oWord.Quit) wouldn't properly close it upon completion.
>>
>>Probably an obvious question, but did you close the doc before issuing the quit?
>
>Yes...
Can we see part of the code? When I open a second instance of word using createobject(), open a file (Documents.Open(), save it (ActiveDocument.SaveAs(), close it (ActiveDocument.Close(0), and then oWord.quit(), everything about my instance is gone. The other instance doesn't know anything has happened.
>
>
>>
>>>How may I allow the user continue working in their Word Application while the program is running behind the scenes?
>>>
>>>TIA...
Précédent
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