I am trying to fetch HTML from the Outlook. Text format is set to HTML and that is what will be received by the exchange server after I send it.
I am able to get text using:
if (e.Current.ControlType == ControlType.Document && e.Current.Name == subject+" - Message")
{
TextPattern v = (TextPattern)e.GetCurrentPattern(TextPattern.Pattern);
System.Console.WriteLine("DOC:"+ v.DocumentRange.GetText(-1));
}
Is there any way to read HTML from the editor using .NET automation features?