Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is Word/Excel installed
Message
 
To
10/10/2001 10:32:20
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00566415
Message ID:
00566585
Views:
30
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform