Retrieving label names from calendar folder

  • Thread starter Thread starter Neil Dittmar
  • Start date Start date
N

Neil Dittmar

Hello all,

I am attempting to retrieve the custom label names that a
user sets in a Calendar folder in Outlook. I'm aware that
the Outlook Object model does not expose this property
outright, but it can be accessed via CDO. Using sample
code located at http://www.outlookcode.com/codedetail.aspx?
id=139 I am able to extract the index number of the label
selected for an appointment. However, I need to retrieve
the corresponding label name (possibly user defined) as
well. The label will be used on reports generated via
Visual Basic. If anyone could assist me in this, it would
be greatly appreciated.

Thanks in advance,

Neil Dittmar
Software Developer
Aurora Information Systems
 
The user's customizations of the label text are stored in the 0x36DC0102
MAPI property tag on the calendar folder itself. This is a binary property
whose structure is not documented. Each calendar folder can have its own
list of labels.
 
Below are excerpts from Sue Mosher's discussion posts relating to a code sample that works with setting calendar labels (http://www.outlookcode.com/codedetail.aspx?id=139).

"If the user has modified the color labels, there will be a hidden item in the calendar folder containing binary information related to the customizations, but the exact structure of the information is undocumented. You can check it out with Outlook Spy or Mdbvu32.exe."

"I did a little digging and Outlook Spy (IMAPIFolder interface - IMsgStore:Advise() tab notifications) reveals that it's a binary property of the folder, not a hidden item. Property ID is 0x36DC0102. I actually don't think it would be that difficult to figure out the format; it's just not high on my list of priorities."

Note that OutlookSpy is available via http://www.dimastry.com.
 
Back
Top