Formatted Text (Using HTML) in Appointment

  • Thread starter Thread starter Parwej Ahamad
  • Start date Start date
P

Parwej Ahamad

Hi Experts,

I am using COM "Microsoft Office 12.0 Object Library" in VS2005 to add an
appointment into the Calendar (Outlook version2003). I am able to add it
succesfully.

Bu now I would like to format the appointment body usig HTML tags so
unfortunately I did not find any clue/idea how to do it?
I used HTML tage but it is adding as text in appointment body. So please
could asist me how to implement it and I need to support Outlook versions
(2000, 2003 and 2007).
 
Sorry, that isn't something you can do. There is no HTMLBody in
AppointmentItem objects.

The best you could do for formatted text is to use RTF (Outlook Rich Text)
which would go into the MAPI property PR_RTF_COMPRESSED, which is a
PT_BINARY.

You'd have to force that field with the formatted RTF, something I wouldn't
want to have to do, using some other lower level API such as CDO 1.21 or
Extended MAPI. The Outlook object model couldn't be used if you intend to
support anything under Outlook 2007.
 
Back
Top