Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Test if Excel is installed
Message
De
14/02/2009 06:53:14
 
 
À
14/02/2009 06:44:13
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01381728
Message ID:
01381729
Vues:
78
>Hi.
>I need to test if Microsoft Office(Excel) is installed before creating an
>Excel object.
>I will be greate if I can get the version number too.
>Thanks in advance.

With VFP9 this is very easy
Try
   lox=Createobject('excel.application')
   lcVersion=lox.Version && 11.0=Excel 2003, 12.0=Excel 2007
Catch
   Messsagebox('Excel is not installed')
Endtry
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform