Retrieving label names from calendar folder

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
 
S

Sue Mosher [MVP-Outlook]

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.
 
G

Guest

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top