Outlook vs. Word with Smart Tags

C

CoolX

Hello,

i have a problem with Smart Tags under Outlook 2003 (2007).

Scenario:

I want to create a simple dialog/smart tag that gets information from a
document by smart tags and is able to edit the calling document by
click.

Ok, I have written a SmartTagRecognizer that is able to start a
dialog/task pane in the given context (calling a dialog directly, or
communicate by X with the custom task pane (in my example using MS
Message Queue).
Within the dialog/task pane, I have a simple textbox and a button.
Pressing the button inserts the text into my document at the current
cursor position. That works fine... under Word.
Using Smart Tags under Outlook forces me to activate "Word to edit mail
messages". If I now try to activate my task pane/dialog by click on a
Smart Tag, any Word Document that sleeps in Background will get the
focus. Using "ApplicationName" inside the InvokeVerb2 Method, returns
"Word.Application.11" instead of "Outlook.Application.11". That is of
course the way it works because i need to use Word as editor. But I
need to identify either I am currently editing under Word or Outlook.

Getting the active window handle is also ineffective, because while
inside the SmartTagRecognizer no window seems to be active (or that API
method runs into an error, don't know).

Has anyone an idea how to identify the caller of my SmartTagRecognizer
or how to synchronize it by an other way?

Thank You,
J.Stuart

INOSOFT AG
Germany
 

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