Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Test if Excel is installed
Message
From
14/02/2009 06:53:14
 
 
To
14/02/2009 06:44:13
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01381728
Message ID:
01381729
Views:
76
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform