Peter,
In addition to what Nigel posted, you could probably use Rick Strahl's wwIPStuff utilities. HTTPPing gives you the ability to ask if a certain URL exists (similar to the way Ping can ask if a certain IP address exists). Because it uses the HTTP protocol over port 80, it usually isn't blocked by firewalls. If you get a response you can enable all the links. If not, disable what you need.
Check out
www.west-wind.com.
HTH.
>Thanks,
>That means I have to create the Outlook object and after it fails react.
>Therefore a lot of time is waisted waiting for outlook and going through its silly dialog about local access etc.
>There are no low level API calls I could do to know if I have a network connection???
>I I could create a oApp.I_am_connected property I could make all web links invisible at the same time...
>
>Peter
>
>
>
>>>I have an application where I do automation with Outlook.
>>>On a laptop without connection to the network there is no outlook and my system breaks with an OLE error.
>>>Can I check invisibly, if outlook is available and if not disable the interface?
>>>Can I also check if the macro feature has been turned off, to hide that ugly window from MS's security patch<g>
>>>
>>>Peter
>>
>>Peter,
>>You can trap the error using an ON ERROR routine or if you are using a class to handle the functionality, you can use the Error event.
>>
>>Can't help you with the security issue. Sorry.
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao