views:

180

answers:

1

I'd like to create C# outlook addin to automate a process of adding mail fragments as comments in my bug tracking system (Jira).

To create the comment I need to extract currently selected text. I manage to do that in a tricky way for email window (following this article). But I didn't find any way to access the current selection in the preview window.

Any suggestions?

A: 

It seems that there is no exposed way to access selected text in the reading pane of Outlook 2007.

The most reasonable solution I've found is to send "CTRL-c" and read the text that was copied. But it doesn't always work as the mail viewer in reading pane has to be selected which isn't always true.

Piotr Czapla