473,396 Members | 1,655 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Outlook not connected to server?

I'm working with an Outlook object and I, thru VB code, execute menu option
"Purge All Items" (which deletes all "marked for deletion" emails from the
MAPI folder on the server and in outlook).

Outlook then complain about that it can't complete that action since outlook
is not connected to the server... even though I am connected to the
internet. How do I make outlook be "connected to server" without running a
"Send/receive"?

Best Regards
/Lars Netzel
Nov 21 '05 #1
2 4986
Lars Netzel wrote:
I'm working with an Outlook object and I, thru VB code, execute menu option
"Purge All Items" (which deletes all "marked for deletion" emails from the
MAPI folder on the server and in outlook).

Outlook then complain about that it can't complete that action since outlook
is not connected to the server... even though I am connected to the
internet. How do I make outlook be "connected to server" without running a
"Send/receive"?

Best Regards
/Lars Netzel


I've never used the outlook object thru VB before, but you either need
change the timout to be larger, or run a command to Get Message Headers.
That will re-connect you. Or you might be able to force a re-connect
before you run the purge all items function.

I can look into the code for you if you like, but you sound like you
would be able to figure it out yourself.
Nov 21 '05 #2
HI

Hi, well yeah that's my question.. how do I reconnect to the server without
synchronizing the emails.. withoutdownloaded new emails and withoutsending
anything.

/Lars
"Matt" <ma*****@interactiveideasandsolutions.com> wrote in message
news:eU**************@TK2MSFTNGP12.phx.gbl...
Lars Netzel wrote:
I'm working with an Outlook object and I, thru VB code, execute menu
option "Purge All Items" (which deletes all "marked for deletion" emails
from the MAPI folder on the server and in outlook).

Outlook then complain about that it can't complete that action since
outlook is not connected to the server... even though I am connected to
the internet. How do I make outlook be "connected to server" without
running a "Send/receive"?

Best Regards
/Lars Netzel


I've never used the outlook object thru VB before, but you either need
change the timout to be larger, or run a command to Get Message Headers.
That will re-connect you. Or you might be able to force a re-connect
before you run the purge all items function.

I can look into the code for you if you like, but you sound like you would
be able to figure it out yourself.

Nov 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Tor Inge Rislaa | last post by:
I have an application sending e-mail within my organization based on an existing MAPI session. The users are using Outlook as the primary e-mail program. Based on the security updates within...
3
by: Chris Thunell | last post by:
I am looping through a Public Folder in our Exchange 2003 server system and i keep getting invalid cast exceptions although the Message Class is set correctly for each item. It works until i get...
0
by: Lars Netzel | last post by:
I'm using the outlook object in an application built for computers connecting to a MAPI server thru a modem. When I'm not online I use the Dialup API from windows to get a connection but for...
5
by: Greg Robinson | last post by:
Not sure where to post this. At runtime, we need to be able to make sure a user is running Outlook (at least 98 or higher) in order to send an email. So, if a condition is met, we need to...
3
by: Pieter Coucke | last post by:
Hi, I developped some time ago an Outlook Add In (VB.NET 2005) that worked fine during several months with all the users. Suddenly, 2 weeks ago it stopped working for one of the users. The...
1
by: isurug | last post by:
Hello All! I've been trying to come up with a web service which enables me to use outlook remotly with a machine which only has a web browser. I've tried this with windows forms and it worked...
6
by: Manuel | last post by:
Hi, Using the PIA "Microsoft Outlook 11 Object Library". I've noticed that the Logon method of the NameSpace Object is simply ignored. My Outlook 2003 is full updated. For example if I...
1
by: =?Utf-8?B?TmVlbENoYW5kcmE=?= | last post by:
Hi , I am Using Visual Studio 2005 (VB code) to develop a AddIn for Outlook 2003; I need to find out from the AddIn If Of Outlook 2003 is connected to internet , That is, Is Outlook 2003...
1
by: evenlater | last post by:
My client has asked for the ability to send email messages to a list of users by clicking a button on a form. This is a piece of cake to provide for our local users who have the Access...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.