none
Hyperlink in Outlook Calender appointment/meeting message body RRS feed

  • Question

  • HI All,
    I Have a small Application which needs to Configure Outlook Calender with appointment/meeting and its details in message body,
    We need to append a Hyperlink which points to some URL in its Message Body, 
    When i check it by Creating HTML Anchor tag  in outlook it is displayed as text with anchor tag rather than Converting it as hyperlink, 
    Just want to know 
    How to append Hyperlink in message body?
    is there any way that converts anchor tag to Hyperlink in Outlook Calendar
    Thanks in advance :)
    Thursday, May 10, 2012 6:22 AM

Answers

  • "<plug>" above refers to me suggesting to use Redemption (which I created). I did not suggest that you wrap your HTML code in the <plug> tag, which is not a valid HTML tag. Sorry about the confusion.

    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.3 is now available!

    Monday, May 14, 2012 1:53 PM

All replies

  • yu did not mention outlook version so i will assume 2010. You can do it by using word api like this:

     var wordDoc = (Document)appointmentInspector.WordEditor;
    var selection = wordDoc.Windows.get_Item(1).Selection;
    selection.Move(WdUnits.wdStory, 1);
    selection.TypeText(Environment.NewLine);
    selection.Move(WdUnits.wdStory, 1);
    wordDoc.Hyperlinks.Add(selection.Range, url
    , null, "Meeting site url", url , null);

    Thursday, May 10, 2012 7:30 AM
  • In general, appointments (and contacts) only support RTF, so you will nee to insert a property formatted RTF link into teh RTF assigend to trh AppointmentItem.RTFBody property.

    <plug>

    If using Redemption is an option, RDOAppointmentItem (as of version 5.3) will convert the HTML assigned to HTMLBody property to RTF.

    </plug>

    

    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.3 is now available!

    Thursday, May 10, 2012 4:54 PM
  • Hi Dmitry,

    When i tried appending <plug> to existing string, its displaying text including < plug>, :(

    PF sample Text below which is displayed in Outlook Calender.

    <plug><A href ="https://mydev.com/management/LMS_CNT_LaunchCourse.asp?ActivityId=866784&EventId=866784">Click this direct link to launch your session </A> <br />(If the direct link doesnÆt work,<A href ="https://mydev.com/management/LMS_ActDetails.asp?ActivityId=866784&UserMode=0&ActAutoLaunchFlag=1">Click this link to launch session from LMS launch page.</A>)<br /></plug>
    Monday, May 14, 2012 7:08 AM
  • Thanks for your reply,

    Hi DamianD,

    When i tried to include url using wordDoc , Calender is not configured at all,

    am i missing any thing which is causing this issue.

    Monday, May 14, 2012 7:13 AM
  • what do you mean by 'calendar is not configured at all'? Do you mean that no MAPI profile is created yet on that machine?
    Monday, May 14, 2012 8:51 AM
  • @DamianD,

    Normally when i append string(any content) to Message body it creates Appointment with content.

    PF sample Text below which is displayed in Outlook Calender.

    <A href ="https://mydev.com/management/LMS_CNT_LaunchCourse.asp?ActivityId=866784&EventId=866784">Click this direct link to launch your session </A> <br />(If the direct link doesnÆt work,<A href ="https://mydev.com/management/LMS_ActDetails.asp?ActivityId=866784&UserMode=0&ActAutoLaunchFlag=1">Click this link to launch session from LMS launch page.</A>)<br />

    But when i tried with wordDoc, Outlook Calendar Appointment isn't generated/created,

    I guess there might be some error when code gets executed.

    Monday, May 14, 2012 10:28 AM
  • show us code how you create apointments
    Monday, May 14, 2012 10:30 AM
  • "<plug>" above refers to me suggesting to use Redemption (which I created). I did not suggest that you wrap your HTML code in the <plug> tag, which is not a valid HTML tag. Sorry about the confusion.

    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.3 is now available!

    Monday, May 14, 2012 1:53 PM