Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Detecting the ole server before issuing creatobj()
Message
From
17/03/2000 18:45:35
 
 
To
17/03/2000 13:41:19
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00347101
Message ID:
00347351
Views:
23
Hi Erik,

Thanx for jumping in with help. Look at Andrew's suggestion. I am sure the IsComObj() does what you are outlining.

Neil

>>Hi fellow UTers
>>
>>I installed an app at a client site. The app uses automation to gain access to WORD and OUTLOOK. The client did not have WORD installed. I issued oWordDocument=createobject("word.application") in a method and hit the wall. How do you check for the presence of the server before trying to create the object.
>>
>>Thanx
>>Neil
>
>Easiest way is to just trap for the error when you try to instanciate the objects. Next best is to check for the presence of "Word.Application" in the registry under HKCR. You can use the FFC registry class, the WSH, or any one of several classes available here in the files section to read the registry.
Previous
Reply
Map
View

Click here to load this message in the networking platform