General information
Category:
COM/DCOM and OLE Automation
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only