del_ave

The setup:

Visual Studio 2005

VSTO 2005 SE

.NET 2.0

Windows XP, SP 2 - 32-bit.

Outlook 2003 (Office 2003).

Exchange Server 2003.

The problem:

I am developing an addin for Outlook 2003 to capture user's data. The question is how can I get the value of the appointment's "Label" drop down list.

To be more specific, in Outlook 2003 do the following:

1. Click on the File menu -> New -> Appointment.

2. See the "Label" drop down list with the values:

- None.

- Important.

- Business.

- Personal.

- Vacation.

- Etc.

If it is possible to get the selected value, is it also possible to add custom values to the list as well

Thank you in advance.



Re: Visual Studio Tools for Office Outlook 2003 - Appointment's label information

Sue Mosher - Outlook MVP

Both of those tasks are possible in Outlook 2003 only with low-level APIs such as Extended MAPI, CDO 1.21, Redemption, and MAPI33. For a C# sample of the first task, see http://www.outlookcode.com/codedetail.aspx id=1606.

The label values are stored in a hidden item in the calendar folder and thus also need a low-level API. I've written code to read them (see http://www.outlookcode.com/codedetail.aspx id=755) but have never tried to set them.





Re: Visual Studio Tools for Office Outlook 2003 - Appointment's label information

Mike Walker

Hi

In outlook 2007 there is a Categories Class that holds the current categories as a String and can be managed through system dialogs like ShowCategoriesDialog Method of the AppointmentItem, but I have a strong feeling thinking that this wasnt available in the same level in Outlook 2003.

Regards






Re: Visual Studio Tools for Office Outlook 2003 - Appointment's label information

Sue Mosher - Outlook MVP

You are correct, Mike, that they're different. In fact, the entire architecture of both features changed radically between versions.



Re: Visual Studio Tools for Office Outlook 2003 - Appointment's label information

del_ave

Thank you for the reply. I guess that I'll have to think of another place to put my custom items then until I start developing for Outlook 2007.