Getting addin to run under different versions of office

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Till G. Bay (tillbay_at_dtc.ch)
Date: 03/30/04


Date: Tue, 30 Mar 2004 10:37:14 +0200

Hi all,

now I am trying to get my addin to work under Office 2002 and Office 2000.
It works just fine under Office 2003. The code that does not seem to work in
Offices 200 and 2002 is the following:

Public Sub OnConnection(ByVal application As Object, ByVal connectMode As
Extensibility.ext_ConnectMode, ByVal addInInst As Object, ByRef custom As
System.Array) Implements Extensibility.IDTExtensibility2.OnConnection
    applicationObject = CType(application,
Microsoft.Office.Interop.Outlook.Application)
    addInInstance = addInInst
    AddHandler applicationObject.ItemSend, AddressOf OnSend
End Sub

OnSend is never called upon sending an item.

I have tried to do what is described here because I thought that it might be
a known problem:
http://support.microsoft.com/default.aspx?scid=kb;en-us;Q309336

without finding any reference to _SinkHelper that was private therefore I
didn't change anything in the interop dll

I am using the following interop dll:
C:\WINDOWS\assembly\GAC\Microsoft.Office.Interop.Outlook\11.0.0.0__71e9bce11
1e9429c\Microsoft.Office.Interop.Outlook.dll

What is also strange is that I get the following warning upon building:
WARNING: Two or more objects have the same target location
('[targetdir]\office.dll')
WARNING: Two or more objects have the same target location
('[targetdir]\office.dll')

The two office.dll 's that appear under the Detected Dependancies of the
Setup project of the Addin are:
C:\WINDOWS\assembly\GAC\office\11.0.0.0__71e9bce111e9429c\office.dll
and
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Office.dll

any help would be - as always - greatly appreciated

regards,
    till
__________________________________________________
Till G. Bay phone: +41 (1) 63-27633
Software Engineering, Meyer fax: +41 (1) 63-21435
ETH Zentrum, RZ J22
8092 Zurich http://se.inf.ethz.ch/people/bay


Quantcast