Outlook AddIn not displayed in Message Tab

时间:2015-11-12 10:45:08

标签: c# winforms outlook-addin

I have created a Outlook Addin which is added to Home Tab in Outlook. I followed the below link : Outlook addin Home tab with custom button

It is working fine in Home Tab, but when I see the particular mail in a new window i.e Message Tab, the Addin is not visible.

Below are screenshot for the same (Green color Create Note)

enter image description here

But after I double click the mail, the button is not displayed in Message Tab:

enter image description here

I require to copy the mail body when I click the CreateNote button, So I need that button also in Message Tab.

Any suggestion ?

Solution:

After input from below and analysis I found it's better to create two separate ribbon :

one for Home Tab(set ribbon type to outlook.explorer) and another for message Tab(set ribbon type to outlook.mail.read) and I have to set OfficeId of Ribbon Tab different (for Explorer-->TabMail and for Read-->TabReadMessage)

It solved my problem...

Thank u everyone :)

1 个答案:

答案 0 :(得分:1)

您需要为 RibbonType 属性选择适当的值:

enter image description here

  • Microsoft.Outlook.Mail.Compose 或
  • Microsoft.Outlook.Mail.Read