Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Determine if MS Word is installed
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00415559
Message ID:
00415724
Views:
31
>>Just wondering how I can determine (programmatically) if a user has MS Word 97 (or higher) installed on the pc which is running my app.
>
>Why not just try CREATEOBJECT("word.application"), and trap for an error? The reason I suggest this is that it will not only determine whether or not Word is installed, it will also determine whether or not you'll have COM automation problems later in the program.

Mike,

I hate the "trap error" routine for trying to make a determination such as this. I'd use the registry class and check for the existence of the Word.Application key under HKEY_CLASSES_ROOT. Then again, that's just me.
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform