EXPERTS Please Help! Do we need an InspectorWrap Class

S

Sanjay Singh

I have created an addin using the addin template from MicroEye as a starting
point.
I am adding a toolbar with buttons to mail inspectors as well.

Should I be doing this in an InspectorWrap class (similar to the
ExplorerWrap) class in the template?
At the moment my code is using an Explorer Wrap but not an InspectorWrap
class.

If possible, could someone point me to a sample of creating and using
Inspector commandbars?

My addin is created in Outlook 2000 and seems to work well in Outlook 2000.
It seems to have stability problems when used in Outlook 2002/2003. Although
I have not confirmed it, I suspect that it is when the user has other
addins.

Stability problem is bad enough that sometimes Outlook closes itself when
user is simply typing an e-mail (i.e. my toolbar is displayed but is not
being used).

Thanks in advance
Sanjay
 
K

Ken Slovak - [MVP - Outlook]

For the most part an addin written properly for Outlook 2000 should run
without problems in Outlook 2002/2003. You do have to take into account any
newly restricted properties however, such as reading MailItem.Body or
..HTMLBody.

I always use both Explorer and Inspector wrappers if I'm adding buttons or
menus/toolbars in both folder views and open items. I recently published a
sample Inspector wrapper that you can use as a starting point, it's located
at http://www.slovaktech.com/code_samples.htm#InspectorWrapper

This Inspector wrapper has code to handle cases of WordMail, but you don't
get NewInspector for Outlook 2000 with WordMail. So that's the only part
that won't work as expected for Outlook 2000, although since there's no
NewInspector no errors will result. You just won't have access to the
Inspector with WordMail in Outlook 2000.
 
S

Sanjay Singh

Ken
Thank youn for your fantastic support. I had found your Inspector Wrap class
and have used it in my application.

There is one problem that I have found with certain HTML tagged e-mails. I
have placed a message in the program_vba user group titled:
"Wierd!! Why do html e-mails with smarttags in them cause Outlook 2003 to
crash?"

Please let me know if you can shed any light on this. I hope that this is
the last major problem that I have to deal with. Programming in Outlook
requires a lot of patience to work around all the little problems that seem
to exist.

Thanks again for your help.

Sanjay
 

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