none
c# adding hyperlink in appointment item of outlook RRS feed

  • Question

  • I have an AppointmentItem object and I would like to add a a hyperlink to the body of it it the format

    <a href="http://www.bbc.co.uk">Link</a>

    Any ideas? At present it is coming out as literal text and the "http://www.bbc.co.uk" is a link?

    Is it Possible for the Outlook Version 2003?


    Suraj

    Monday, November 19, 2012 3:01 PM

Answers

  • The body for Appointment items use Rich Text, not HTML.  You can use AppointmentItem.RTFBody to read/write the formatting, but that's only available with Outlook 2010 and up.  Otherwise, you'd need to use the SafeAppointmentItem object with Redemption to do that with earlier versions.


    Eric Legault MVP (Outlook)
    About me...
    Try Outlook Appins - affordable and easy to use!

    Monday, November 19, 2012 4:04 PM
    Moderator
  • The body of an appointment item is RTF (rich text format). That's a bear to work with directly. If you use Redemption (www.dimastr.com/redemption) you can use valid HTML and setting HTMLBody for the RDOAppointment item would automatically convert it to RTF for you.
     
    --
    Ken Slovak
    [MVP-Outlook]
    http://www.slovaktech.com
    Author: Professional Programming Outlook 2007
    "Suraj Shaha" <=?utf-8?B?U3VyYWogU2hhaGE=?=> wrote in message news:78c206d0-9fd0-4e7a-8d62-e79689b74fb4...

    I have an AppointmentItem object and I would like to add a a hyperlink to the body of it it the format

    <a href="http://www.bbc.co.uk">Link</a>

    Any ideas? At present it is coming out as literal text and the "http://www.bbc.co.uk" is a link?

    Is it Possible for the Outlook Version 2003?


    Suraj


    Ken Slovak MVP - Outlook
    Monday, November 19, 2012 4:05 PM
    Moderator
  • You'd have to build your body string according to the syntax specified here:

    Rich Text Format (RTF) Version 1.5 Specification:
    http://www.biblioscape.com/rtf15_spec.htm


    Eric Legault MVP (Outlook)
    About me...
    Try Outlook Appins - affordable and easy to use!

    Wednesday, November 21, 2012 4:06 PM
    Moderator

All replies

  • The body for Appointment items use Rich Text, not HTML.  You can use AppointmentItem.RTFBody to read/write the formatting, but that's only available with Outlook 2010 and up.  Otherwise, you'd need to use the SafeAppointmentItem object with Redemption to do that with earlier versions.


    Eric Legault MVP (Outlook)
    About me...
    Try Outlook Appins - affordable and easy to use!

    Monday, November 19, 2012 4:04 PM
    Moderator
  • The body of an appointment item is RTF (rich text format). That's a bear to work with directly. If you use Redemption (www.dimastr.com/redemption) you can use valid HTML and setting HTMLBody for the RDOAppointment item would automatically convert it to RTF for you.
     
    --
    Ken Slovak
    [MVP-Outlook]
    http://www.slovaktech.com
    Author: Professional Programming Outlook 2007
    "Suraj Shaha" <=?utf-8?B?U3VyYWogU2hhaGE=?=> wrote in message news:78c206d0-9fd0-4e7a-8d62-e79689b74fb4...

    I have an AppointmentItem object and I would like to add a a hyperlink to the body of it it the format

    <a href="http://www.bbc.co.uk">Link</a>

    Any ideas? At present it is coming out as literal text and the "http://www.bbc.co.uk" is a link?

    Is it Possible for the Outlook Version 2003?


    Suraj


    Ken Slovak MVP - Outlook
    Monday, November 19, 2012 4:05 PM
    Moderator
  • Hi Eric,

               Got it,Thanks for your Reply!!!


    Suraj

    Tuesday, November 20, 2012 9:16 AM
  • Hi Ken,

                Thanks for your suggestion..


    Suraj

    Tuesday, November 20, 2012 9:25 AM
  • Hi Eric,

               I am very new to Outlook Programming,so can you please tell me how to set Appointmentitem.RTFBody property with some code snippet in c#.

    Thanks in Advance.


    Suraj

    Wednesday, November 21, 2012 10:30 AM
  • You'd have to build your body string according to the syntax specified here:

    Rich Text Format (RTF) Version 1.5 Specification:
    http://www.biblioscape.com/rtf15_spec.htm


    Eric Legault MVP (Outlook)
    About me...
    Try Outlook Appins - affordable and easy to use!

    Wednesday, November 21, 2012 4:06 PM
    Moderator