Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is Word/Excel installed
Message
 
À
10/10/2001 10:32:20
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00566415
Message ID:
00566585
Vues:
32
Hi Guillaume,

Another method that, IMHO is simpler, to try is the following:

oWord = ""
mcerror = ON('ERROR')
ON ERROR *
oWord = createobject('Word.Application')
ON ERROR &mcerror

IF TYPE('oWord') = 'O'
Word exists do rest of code
ENDIF

>Hi,
>
>Is there a easy way to see if Word/Excel are installed on my system ?
>If i try a createobject("word.application") i get a CLASS DEFINITION IS NOT FOUND, but i want to check before i do the createobject.
>
>thx
>
>Guillaume
Colin Magee
Team Leader, Systems Development
Metroland Media Group Ltd.
Mississauga, Ontario, Canada

cmagee@metroland.com

Never mistake having a career with having a life.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform