Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Word Application open in user's PC, how to...
Message
From
12/09/2006 13:10:09
 
 
To
12/09/2006 12:12:22
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
01152901
Message ID:
01153090
Views:
20
>>>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...
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform