View Single Post
  #4  
Old February 12th 09, 03:56 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Inspectors event in VC++ ATL Programming

Does that system have the PIA for Word and office installed in the GAC?

Other than that the only things I can think of to start out are to try to
find the differences in where the code works and where it doesn't. I'd start
by looking at the GAC and the Office installation first.

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


"Jayashree Sekar" Jayashree wrote in
message ...
Hi Ken,

Sorry for a delayed reply & thank you so much for your inputs.

Finally, I created two VSTO 2005 addins in c#, one for inserting my
toolbar
in Outlook 2003 mail-message & another for creating my ribbon in Outlook
2007
mail-message.

Can't we create a single addin to work with both Outlook 2003 toolbar &
Outlook 2007 ribbon??

In one of our non-development system with Outlook 2003, the Outlook 2003
addin fails to add my toolbar when we select the option "Use Microsoft
Office
Word 2003 to edit e-mail messages" or when we select the option "Use
Microsoft Office Word 2003 to read Rich Text edit e-mail messages" in the
"Mail Format" tab of Outlook-Tools-Options. If we unselect those
options,
it is loading successfully.

When the options are selected, I get an exception in the InspectorActivate
event handler(in the InspectorWrapper class where I create my CommandBar)
while executing the following line.

Microsoft.Office.Core.CommandBars m_cCmdBars = m_cInspector.CommandBars;
//m_cInspector - is the Inspector dispatch that we get in the newInspector
event

The raised exception is:

"Library not registered. (Exception from HRESULT: 0x8002801D
(TYPE_E_LIBNOTREGISTERED))"

I also checked the assembly and found the existence of
"Microsoft.Office.Interop.Outlook" version 11.0.0.0

Can you please help me out in solving this issue.

Thanks in Advance,
S.Jayashree


Ads