Highlighting text in Outlook message

A

Alex

Is there any way to interactively highlight text in an Outlook 2003 message
editor window using VSTO 2005? I'm not seeing any way using the Outlook 2003
object model, i.e. accessing MailItems, Inspectors or Editors.

If not, can this kind of integration be achieved with a lower lever
Microsoft API? I'd like to be able to parse a mail message as its being typed
in and highlight key words contextually.
 
A

Alex

I've dug some more, and it appears that there's no way to achieve this using
VS+VSTO2005 and Outlook 2003. At least not directly. It looks like I might be
able to support my desired functionality using Smart Tags, but that will
require the Outlook messages be edited in Microsoft Word. Probably not a
major show stopper since pretty much anyone that uses Outlook has Word
installed (and VSTO 2005 seems to require the Office 2003 Pro version of
Outlook anyhow).

If anyone knows of a way to implement Smart Tag-like features in Outlook
2003 directly, please let me know.
 
K

Ken Slovak - [MVP - Outlook]

If WordMail is being used get WordEditor (which is Word.Document) and use
the Word object model to select text and place the cursor. If it's HTML you
can get the HTMLDocument object and use that object model. For plain text
not in WordMail you're out of luck unless you use the Win32 API's and then
you're on your own.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top