Inspector CommandBar - reading Rich Text with Word

Add-in Express™ Support Service
That's what is more important than anything else

Inspector CommandBar - reading Rich Text with Word
 
Rick Koch




Posts: 172
Joined: 2006-09-05
Using VSTO 2005, Outlook 2003, ADX VSTO/.Net

Looks like inspector commandbar not displaying on rich text email inspectors when Word is selected as rich text email reader.

Toolbar displays just fine if using Word to compose, however.

Doesn't make sense, but that's what I'm seeing.
Posted 23 Sep, 2006 15:16:13 Top
Sergey Grischenko


Add-in Express team


Posts: 7224
Joined: 2004-07-05
Hi Rick.

This is the known issue of Outlook.
In this case there are no available command bars in Outlook inspector.
Posted 25 Sep, 2006 08:45:14 Top
Rick Koch




Posts: 172
Joined: 2006-09-05
If I'm in a compose inspector, with Word selected as the email editor, should the behavior be any different?
Posted 25 Sep, 2006 09:26:15 Top
Sergey Grischenko


Add-in Express team


Posts: 7224
Joined: 2004-07-05
In a compose inspector all should work as expected, i.e. command bars should be displayed correctly.
Posted 25 Sep, 2006 09:43:34 Top
Rick Koch




Posts: 172
Joined: 2006-09-05
But, if I open a compose inspector, and then I *also* open a read inspector (rich text, with word selected as the rich text editor) then there *is* a commandbar on the read inspector, except that its behavior is somehow tied to the toolbar on the compose inspector -- as if there's only one toolbar.

I realize the product only permits me to enable/disable commandbar buttons in response to inspector events. How much harder would it be to allow the programmer to hide the entire toolbar instead of just enabling/disabling buttons?

Is it possible to sense from the OOM whether the user has Word selected for viewing rich text email? Or is it possible to turn it off if he does?
Posted 25 Sep, 2006 11:38:01 Top
Sergey Grischenko


Add-in Express team


Posts: 7224
Joined: 2004-07-05
Hi Rick.

The command bar is added by Outlook and ADX doesn't handle the situation above.
To hide/show command bars you can use the InspectorActivate event handler.
To determine if Word is used as an editor you can check the EditorType property of the Outlook inspector (Outlook.Inspector.EditorType).
Posted 26 Sep, 2006 08:30:16 Top
Rick Koch




Posts: 172
Joined: 2006-09-05
Sergey Grischenko wrote:
To hide/show command bars you can use the InspectorActivate event handler.


In my experience this is only helpful for hiding buttons, and does not override the toolbar designer rules.
Posted 26 Sep, 2006 13:12:09 Top
Sergey Grischenko


Add-in Express team


Posts: 7224
Joined: 2004-07-05
Hi Rick.

I will develop an example today.
Posted 27 Sep, 2006 22:00:30 Top
Sergey Grischenko


Add-in Express team


Posts: 7224
Joined: 2004-07-05
Posted 28 Sep, 2006 11:38:46 Top
Rick Koch




Posts: 172
Joined: 2006-09-05
Thank you very much! I will try it out.
Posted 28 Sep, 2006 21:15:18 Top