View Single Post
  #5  
Old October 15th 08, 05:27 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.

Is this version of Word from the same package and SKU as the Outlook
version?

It's odd that you get IsWordMail() == true but get an error and security
popup when accessing WordEditor. Is this a VSTO addin or a shared managed
code 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)?

--
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,
Thanks for response,
Your suggestion helped me to had littile progress but not the
solution.

As per your suggestion i handled "NewInspector" Event and in that
handler i register "((InspectorEvents_10_Event)Inspector).Activat e"
Event.
So when execution comes to Activate Event handler, Properties values
are now as follows :

inspector.IsWordMail() - returns me false. - now it returns me true
inspector.WordEditor - returns me null. (Security Pop-up as well) -
still same
inspector.HTMLEditor - returns me null. (Security Pop-up as well) -
still same
inspector.EditorType - returns me "olEditorRTF". - now it returns me
"olEditorWord"

so still i am not able to add my CommandBar to inspector.

And when i try activate inspector by using code it thorws me exception
"Unable to display item." (COMException - ErrorCode : 0xfbc20009)

I need to show my toolbar once inspector is visible. and i didn't find
any Displayed/VisibleChange Event or Activated Event in Outlook object
model.
Surprisingly everything (same code) is working fine for new inspector.
(create new mail), as i mentioned in my additional note.

In your opinion, is any solution available for this issue?

Thanks and Best Regards,
Nikhil Sharma


Ads