Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can VFP app have its own copy of Word?
Message
De
01/02/2012 09:08:05
 
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01532736
Message ID:
01534198
Vues:
79
>The primary purpose of the application is to generate output and about 60% of it comes from Word automation. It seems logical to create and destroy the instance of Word along with the application session so all processes can access the global reference in the same way. How do I verify that the reference is still a valid Word application? Type() returns 'O' long after Word.quit()

Try checking oWord.Name. Here's what we used in the Automation book:
RETURN VarType(This.oServer)<>"O" OR TYPE("This.oServer.Name")<>"C"
Tamar
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform