A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Coding against Out Of Office in Outlook 2007



 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old November 15th 06, 08:12 PM posted to microsoft.public.outlook.program_vba
Brian Hampson
external usenet poster
 
Posts: 6
Default Coding against Out Of Office in Outlook 2007

I had originally posted in microsoft.public.outlook and it was
suggested that here might be a better place. So....

======

I recently upgraded to Outlook 2007 B2TR and have found that I can no
longer code against CDO.DLL It's gone

Using C#, I used to get the MAPI session, and from that I could change
the out of office. No longer. Does anyone know how to do this using
the new Microsoft.Office.Core and Microsoft.Office.Outlook DLL's that
are supposed to be the new replacements?


Here's what I had that worked until Outlook 2007 came around:


SessionClass session = new MAPI.SessionClass();
session.Logon(Missing.Value,Missing.Value,Missing. Value,Missing.Value,Missi*ng.Value,Missing.Value,s ervertxt.Text+"\n"+mailboxtxt.Text);

session.OutOfOffice= !this.checkBoxIn.Checked;
session.OutOfOfficeText = this.OOOtxt.Text;
session.Logoff();

Any suggestions? This is s standalone app, not an add-in or other.


1. It has been brought up that the CDO is now a separate download (that
didn't help - it won't install if I have Exchange Tools on the box)
1a. Apparently CDO isn't supported - I'm getting used to that. If I
can make it work, I don't really care if it isn't supported (It appears
that much of what people ACTUALLY want to do isn't supported sigh)

2. It has been mentioned that the OOstate is available through
Store.PropertyAccessor using the new object, but the text isn't

I want to be able to change state and text of the out of office
message.

Thanks in advance for any help.


Brian Hampson
System Administrator, North America
ALS Laboratory Group

 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Outlook 2003 with Office 2007 Wilco Outlook - Installation 3 November 17th 06 10:26 PM
how do we add 2007 holidays to office 2007 karol Outlook - Calandaring 1 October 29th 06 03:05 PM
MS Office 2007 Beta 2 Outlook psc Outlook - Installation 1 July 2nd 06 07:19 PM
Launching Office 2007 components gets Office 2003 set up P Cause Outlook - Installation 0 July 1st 06 01:46 PM
Feedback on Outlook/Office 2007 Michael Roed Outlook - General Queries 2 June 16th 06 03:52 PM


All times are GMT +1. The time now is 08:51 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.