CDO/MAPI Offline to Online Outlook 2003

E

E. Winston

Hi All,

I have a VB addin running in Outlook 2003 with Exchange in Cahce mode.
Everything works fine except when a user starts Outlook in Offline Mode
and switches to Online mode. No matter what I do I can't seem to get my
Session object to refresh. My app continues to see the InfoStores as
Offline. Therefore any requests for data that are normally available in
Online mode but not in Offline mode come back as "nothing". The only way
to correct this is for the user to restart Outlook. Thus far I have
tried:

1. Logging on and off the session when the state changes
2. Destroying and recreating all my session related objects

All to no avail. Has anyone seen this before? Any recommendations how I
can address this problem?

On another note assuming I can get past the above, does anyone have any
good methods for trapping the change in state (offline to online and
vice versa) through an event driven model?

Thanks in advance!

-Ed
 
K

Ken Slovak - [MVP - Outlook]

I don't know of any events that fire when the online/offline status is
changed but of course you can check the NameSpace.ExchangeConnectionMode
property to see what's what.

I don't know if this will be helpful to you but take a look at the KB
article http://support.microsoft.com/default.aspx?id=834496




E. Winston said:
Hi All,

I have a VB addin running in Outlook 2003 with Exchange in Cahce mode.
Everything works fine except when a user starts Outlook in Offline Mode
and switches to Online mode. No matter what I do I can't seem to get my
Session object to refresh. My app continues to see the InfoStores as
Offline. Therefore any requests for data that are normally available in
Online mode but not in Offline mode come back as "nothing". The only way
to correct this is for the user to restart Outlook. Thus far I have
tried:

1. Logging on and off the session when the state changes
2. Destroying and recreating all my session related objects

All to no avail. Has anyone seen this before? Any recommendations how I
can address this problem?

On another note assuming I can get past the above, does anyone have any
good methods for trapping the change in state (offline to online and
vice versa) through an event driven model?

Thanks in advance!

-Ed


----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption
=---
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top