Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Word Automation and Vista
Message
 
À
20/12/2007 14:24:04
Tim Muller
Innovative Solutions, Inc.
West New York, New Jersey, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
01276882
Message ID:
01276892
Vues:
18
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform