Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Word Application open in user's PC, how to...
Message
De
12/09/2006 13:10:09
 
 
À
12/09/2006 12:12:22
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
01152901
Message ID:
01153090
Vues:
21
>>>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
Fil
Voir

Click here to load this message in the networking platform