Outlook Addin kompatibilitaet ueber verschiedene Versionen hinweg...

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Till G. Bay (tillbay_at_dtc.ch)
Date: 05/12/04


Date: Wed, 12 May 2004 10:29:12 +0200

Hallo allerseits,

Ich kopier hier den post den ich in einem englischsprachigen Forum gemacht
habe:

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



Relevant Pages

  • Getting addin to run under different versions of office
    ... now I am trying to get my addin to work under Office 2002 and Office 2000. ... Extensibility.ext_ConnectMode, ByVal addInInst As Object, ByRef custom As ... What is also strange is that I get the following warning upon building: ... Two or more objects have the same target location ...
    (microsoft.public.dotnet.languages.vb)
  • Getting addin to run under different versions of office
    ... now I am trying to get my addin to work under Office 2002 and Office 2000. ... Extensibility.ext_ConnectMode, ByVal addInInst As Object, ByRef custom As ... What is also strange is that I get the following warning upon building: ... Two or more objects have the same target location ...
    (microsoft.public.office.developer.outlook.vba)
  • Getting addin to run under different versions of office
    ... now I am trying to get my addin to work under Office 2002 and Office 2000. ... Extensibility.ext_ConnectMode, ByVal addInInst As Object, ByRef custom As ... What is also strange is that I get the following warning upon building: ... Two or more objects have the same target location ...
    (microsoft.public.outlook.interop)
  • How to delete a Non valid Office Addin
    ... automatic translation. ... warning is shown that I have an Addin that is not valid for Office. ... I have un-installed Office XP and re-installed, ...
    (microsoft.public.word.docmanagement)