Reputation: 83
I'm developing an add-in in c# for outlook's 2007 and 2010.
Lets say I have Outlook.MailItem
object of currently displayed mail and I want to replace part of the mail text with buttons, that would call an internal add-in function (passing some parameters of course). Is that even possible to make that callback to add-in function? If yes then could you guys put me on the right track, because I can't seem to find anything related to this.
Upvotes: 4
Views: 680
Reputation: 31651
To my knowledge, you cannot add buttons to the MailItem.Body
. The best you could do is add items to the Ribbon UI based upon the message body's content. There are also similar methods using custom Task Panes and Form Regions.
You can try working with the Word Editor directly, but I have not tried that path.
Outlook.Inspector inspector = Globals.ThisAddIn.Application.ActiveInspector();
Word.Document document = (Word.Document)inspector.WordEditor;
Upvotes: 1