Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Word Automation and Vista
Message
 
To
20/12/2007 14:24:04
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
01276882
Message ID:
01276892
Views:
19
Tim,

Probably it is not Vista versus WindowsXP, but because of different Word/MSOffice versions. Try:
oDocument.Application.Quit(0)  && Quit, don't save & don't prompt.
Other than that, it looks suspicious to me that you have object oDocument, and you do not release it separately before closing Word.
If there are child objects, they should be released separately before closing the parent.

Good Luck

>I am using Automation to print a Word document. When I am done, I do
>
> oDocument.Application.Quit
> RELEASE oDocument
>
>Everthing seems fine. When look at the Task Manager, WinWord.EXE is still present when I run under Vista. Under XP it is gone.
>
>Is there some kind of Win32 API call that will let me kill WinWord under Vista?
>
>Thanks.
>
>
>Tim
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform