Htmleditor from Inspector of Newinspector Event

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

We have COM Add_in created for Microsoft Outlook.
The addin registers for NewInspector event.
Using Inspector received with NewInspector event, we could get
EditorType,CurrentItem properties of Inspector.
Fails to get 'Htmleditor' from Inspector of NewInspector event.
Is there any other way to get Htmleditor of Inspector of NewInspector.
 
There is no guarantee that any properties of the Inspector or its
CurrentItem are valid other than CurrentItem.Class or .MessageClass. What
you get in NewInspector is what's known as a weak object reference. You are
best off waiting until the first Inspector.Activate event fires, when all
the properties are guaranteed to be valid.

Outlook 2007 doesn't support HTMLEditor, since it always used WordMail.
 
HTMLEditor is not supported in Outlook 2007 or, in earlieer versions, for items other than mail and post items in HTML format. Also, in general, you should wait for the Inspector.Activate event before using properties or methods related to the content of the item.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
Back
Top