Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to know if MS-Word 2000 or better is available
Message
From
20/09/2006 04:20:47
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01155374
Message ID:
01155389
Views:
16
This message has been marked as a message which has helped to the initial question of the thread.
>Hi all
>
>When a CREATEOBJECT() is executed to automate MS-Word it raises and error. How can I check before hand if MS-Word (better if I can find out if the version is 2000 or above) exists at all. I would like to disable a menu option before hand based on this fact.
>
>Please advise.
try
  ox=createobject('words.application')
catch
  messagebox('Word is not installed')
  ox=-1
endif
if vartype(ox)#'N'
  ** word in installed
endif
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform