View Single Post
  #7  
Old October 16th 08, 02:54 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Can not add CommandBar if "Word 2003 to read Rich Text e-mail" is selected.

There's no such event, and I've never needed it.

I just use the first Inspector.Activate() event and in that event I check
for the Outlook version. If it's less than 12 (Outlook 2003 or earlier) and
..IsWordMail() == true I call to initiate my Word objects like this, where
"_insp" is my wrapper class level Inspector object, and "_doc" is a class
level Word.Document object:

_doc = (Word.Document)_insp.WordEditor;

That works just fine for me.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


wrote in message
...
Hi Ken Slovak,

Is this version of Word from the same package and SKU as the Outlook
version?
Yes, word is from the same package as the outlook
version.

Is this a VSTO addin or a shared managed
code addin?
It is VSTO Addin

Are you deriving all of your Outlook objects from the Application
object
passed to you in your startup event handler (either Startup or
OnConnection)?
Yes, i am deriving all of my out look objects from the
application object passed to me in Startup

It looks strange to me too that i am getting
Inspector.IsWordEmail()==true and Inspector.WordEditor = null

Is there any Event available as "Activated", because i feel "Activate"
Event is fired before Inspector Activation. If i Receive this event
after Activation then i feel the proble will be resolved.

Thanks and Best Regards,
Nikhil Sharma


Ads