Outlook isOnline ?

Add-in Express™ Support Service
That's what is more important than anything else

Outlook isOnline ?
 
Karim




Posts: 170
Joined: 2006-01-02
Hi,

How can I know if Outlook is online or not

Thanks
Posted 24 May, 2010 09:28:10 Top
Dmitry Kostochko


Add-in Express team


Posts: 2875
Joined: 2004-04-05
Hi Karim,

You can use the Offline property of the _NameSpace interface. Please note that the Offline property was introduced in the Outlook 2002 Object Model.
Posted 24 May, 2010 09:38:26 Top
Karim




Posts: 170
Joined: 2006-01-02
Hi Dmitry,

Unfortunately this property is not in Outlook2000.pas but in outlookXp.pas.
I used Outlook2000.pas
In fact what is the difference of two units, knowing that I developed for
2000.2003 and 2007 Outlook.

Thanks
Posted 24 May, 2010 10:20:42 Top
Dmitry Kostochko


Add-in Express team


Posts: 2875
Joined: 2004-04-05
Hi Karim,

Unfortunately this property is not in Outlook2000.pas but in outlookXp.pas.


This is exactly what I was trying to say when speaking about the Outlook 2002 Object Model.

In fact what is the difference of two units, knowing that I developed for ...


The Outlook2000.pas contains the imported type library of Outlook 2000, the OutlookXP.pas contains the imported type library of Outlook 2002.

So, you can use Outlook2000.pas in your add-in and use late binding (type cast to OLEVariant) to get the Offline property if your add-in is run in Outlook 2002 and higher.
Posted 24 May, 2010 11:05:54 Top