Htmleditor from Inspector of Newinspector Event

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.
 
K

Ken Slovak - [MVP - Outlook]

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.
 
S

Sue Mosher [MVP-Outlook]

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top