Formatted Text (Using HTML) in Appointment

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).
 
K

Ken Slovak - [MVP - Outlook]

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.
 

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