View Single Post
  #4  
Old October 15th 08, 11:39 AM posted to microsoft.public.outlook.program_addins
[email protected]
external usenet poster
 
Posts: 5
Default Can not add CommandBar if "Word 2003 to read Rich Text e-mail" isselected.

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