Help!

How to find out wether Echange is disconnected with outloo..

 
  

Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Interoperability RSS
Next:  Unable to access Calander.  
Author Message
Stop method of Sync objec
External


Since: Sep 21, 2009
Posts: 3



PostPosted: Mon Sep 21, 2009 10:43 pm    Post subject: How to find out wether Echange is disconnected with outlook or not
Archived from groups: microsoft>public>outlook>interop (more info?)

Hi All,

I want to check programatically wether Exchange server is disconnected with
Outlook or not.If i am using offline property of Namespace object it is
working only if user is working offline its not working if user is
disconnected from exchange server.

Please suggest me how can I find out Exchange is disconnected or not with
outlook.

Thanks in advance.
Back to top
Ken Slovak - [MVP - Outlo
External


Since: Oct 17, 2003
Posts: 3355



PostPosted: Tue Sep 22, 2009 9:04 am    Post subject: Re: How to find out wether Echange is disconnected with outlook or not [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Please post the Outlook versions you are supporting when you post.

If your Outlook version supports it you can use
NameSpace.ExchangeConnectionMode. Use the Object Browser to see what return
values are possible.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"Stop method of Sync object is not workin"
<StopmethodofSyncobjectisnotworkin.RemoveThis@discussions.microsoft.com> wrote in
message news:D66A0D2D-6C17-4389-AD03-EBC01812067F@microsoft.com...
> Hi All,
>
> I want to check programatically wether Exchange server is disconnected
> with
> Outlook or not.If i am using offline property of Namespace object it is
> working only if user is working offline its not working if user is
> disconnected from exchange server.
>
> Please suggest me how can I find out Exchange is disconnected or not with
> outlook.
>
> Thanks in advance.
Back to top
Stop method of Sync objec
External


Since: Sep 21, 2009
Posts: 3



PostPosted: Tue Sep 22, 2009 9:04 am    Post subject: Re: How to find out wether Echange is disconnected with outlook or [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

it is returning cached mode or not. and i am using Outlook 2007


"Ken Slovak - [MVP - Outlook]" wrote:

> Please post the Outlook versions you are supporting when you post.
>
> If your Outlook version supports it you can use
> NameSpace.ExchangeConnectionMode. Use the Object Browser to see what return
> values are possible.
>
> --
> Ken Slovak
> [MVP - Outlook]
> http://www.slovaktech.com
> Author: Professional Programming Outlook 2007.
> Reminder Manager, Extended Reminders, Attachment Options.
> http://www.slovaktech.com/products.htm
>
>
> "Stop method of Sync object is not workin"
> <StopmethodofSyncobjectisnotworkin DeleteThis @discussions.microsoft.com> wrote in
> message news:D66A0D2D-6C17-4389-AD03-EBC01812067F@microsoft.com...
> > Hi All,
> >
> > I want to check programatically wether Exchange server is disconnected
> > with
> > Outlook or not.If i am using offline property of Namespace object it is
> > working only if user is working offline its not working if user is
> > disconnected from exchange server.
> >
> > Please suggest me how can I find out Exchange is disconnected or not with
> > outlook.
> >
> > Thanks in advance.
>
>
Back to top
Ken Slovak - [MVP - Outlo
External


Since: Oct 17, 2003
Posts: 3355



PostPosted: Tue Sep 22, 2009 11:42 am    Post subject: Re: How to find out wether Echange is disconnected with outlook or [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

So that answers your question. If the session was disconnected from Exchange
it would return olCachedDisconnected or olDisconnected.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"Stop method of Sync object is not workin"
<StopmethodofSyncobjectisnotworkin.RemoveThis@discussions.microsoft.com> wrote in
message news:8253C20E-EF49-4E50-829C-2E1A65A6D15F@microsoft.com...
>
> it is returning cached mode or not. and i am using Outlook 2007
>
Back to top
Stop method of Sync objec
External


Since: Sep 21, 2009
Posts: 3



PostPosted: Sat Sep 26, 2009 12:30 pm    Post subject: Re: How to find out wether Echange is disconnected with outlook or [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi Ken

That property showing olCachedconnected even it is disconnected from
Exchange, my Outlook window is showing as disconnected but
NameSpace.ExchangeConnectionMode is showed as Connected.

Note: especially if exchange information store is stopped it is happening.

Please help to resolve this problem

Thanks in advance



"Ken Slovak - [MVP - Outlook]" wrote:

> So that answers your question. If the session was disconnected from Exchange
> it would return olCachedDisconnected or olDisconnected.
>
> --
> Ken Slovak
> [MVP - Outlook]
> http://www.slovaktech.com
> Author: Professional Programming Outlook 2007.
> Reminder Manager, Extended Reminders, Attachment Options.
> http://www.slovaktech.com/products.htm
>
>
> "Stop method of Sync object is not workin"
> <StopmethodofSyncobjectisnotworkin.DeleteThis@discussions.microsoft.com> wrote in
> message news:8253C20E-EF49-4E50-829C-2E1A65A6D15F@microsoft.com...
> >
> > it is returning cached mode or not. and i am using Outlook 2007
> >
>
>
Back to top
Ken Slovak - [MVP - Outlo
External


Since: Oct 17, 2003
Posts: 3355



PostPosted: Mon Sep 28, 2009 9:04 am    Post subject: Re: How to find out wether Echange is disconnected with outlook or [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I'm not sure if that property is only checked on startup, or with
send/receives or at intervals. You'll have to do some experimentation to
check that out. If it's during a send/receive you can initiate one on
SyncObjects.Item(1) and then get the property. Otherwise you'd have to see
if an alternate API such as Redemption is more accurate or if that's the
best you can do.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"Stop method of Sync object is not workin"
<StopmethodofSyncobjectisnotworkin.RemoveThis@discussions.microsoft.com> wrote in
message news:E5764CE6-7075-482B-8C09-08944A1F9700@microsoft.com...
> Hi Ken
>
> That property showing olCachedconnected even it is disconnected from
> Exchange, my Outlook window is showing as disconnected but
> NameSpace.ExchangeConnectionMode is showed as Connected.
>
> Note: especially if exchange information store is stopped it is happening.
>
> Please help to resolve this problem
>
> Thanks in advance
Back to top
Display posts from previous:   
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Interoperability All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum