I would like to set the Body
of an AppointmentItem
to a string of RTF that contains an embedded image. Setting Microsoft.Office.Interop.Outl
The best info I have seen on this is as per this answer: http://social.msdn.microsoft.com/Forums/en-US/vsto/thread/b41acf6f-71c1-4a8b-9662-fbff26ba3a24/
Basically, it's a klunkly 2-step process:
Seriously Microsoft, surely you could have come up with a better design.
The only way I know is to access the AppointmentItem's GetInspector property, and use it to fetch the underlying WordEditor used to parse the RTF format, something like:
var doc = appointment.GetInspector.WordEditor as Microsoft.Office.Interop.Word.Document;
and then format the document using doc.Content according to Word Object Model.