B
Brian Hampson
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,Missing.Value,Missing.Value,servertxt.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
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,Missing.Value,Missing.Value,servertxt.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