is not loading as a COM ADD-IN in outlook 2003

Add-in Express™ Support Service
That's what is more important than anything else

is not loading as a COM ADD-IN in outlook 2003
 
Jonathan Dorling




Posts: 31
Joined: 2005-06-14
Hi there,

my project i create in VB.net is not loading as a COM ADD-IN in outlook 2003 it has just stop working??

i don't know what i change and nor do i know what to change back?

Jonathan

this is my code below for the file AddinModule.vb


Option Explicit On 

Imports System.Runtime.InteropServices
Imports System.ComponentModel

'Add-in Express Add-in Module
<GuidAttribute("2F9C3A35-FE54-4838-970E-D3460DD339E1"), ProgIdAttribute("DMCRM.AddinModule"), RunInstaller(True)> _
Public Class AddinModule
    Inherits AddinExpress.MSO.ADXAddinModule
    Friend WithEvents Faxes As AddinExpress.MSO.ADXCommandBarPopup
    Friend WithEvents Fax_BW As AddinExpress.MSO.ADXCommandBarButton
    Friend WithEvents Fax_GreyScale_16 As AddinExpress.MSO.ADXCommandBarButton
    Friend WithEvents Fax_GreyScale_256 As AddinExpress.MSO.ADXCommandBarButton
    Friend WithEvents Fax_Colour_4 As AddinExpress.MSO.ADXCommandBarButton
    Friend WithEvents Fax_Colour_8 As AddinExpress.MSO.ADXCommandBarButton
    Friend WithEvents Fax_Colour_24 As AddinExpress.MSO.ADXCommandBarButton


#Region " Component Designer generated code. "
    'Required by designer
    Private components As System.ComponentModel.IContainer

    'Required by designer - do not modify
    'the following method
    Friend WithEvents Fax_DPI As AddinExpress.MSO.ADXCommandBarComboBox
    Friend WithEvents AdxDMCRM As AddinExpress.MSO.ADXCommandBar
    Friend WithEvents Adxtest As AddinExpress.MSO.ADXCommandBarButton
    Private Sub InitializeComponent()
        Me.components = New System.ComponentModel.Container
        Me.AdxDMCRM = New AddinExpress.MSO.ADXCommandBar(Me.components)
        Me.Faxes = New AddinExpress.MSO.ADXCommandBarPopup(Me.components)
        Me.Fax_BW = New AddinExpress.MSO.ADXCommandBarButton(Me.components)
        Me.Fax_GreyScale_16 = New AddinExpress.MSO.ADXCommandBarButton(Me.components)
        Me.Fax_GreyScale_256 = New AddinExpress.MSO.ADXCommandBarButton(Me.components)
        Me.Fax_Colour_4 = New AddinExpress.MSO.ADXCommandBarButton(Me.components)
        Me.Fax_Colour_8 = New AddinExpress.MSO.ADXCommandBarButton(Me.components)
        Me.Fax_Colour_24 = New AddinExpress.MSO.ADXCommandBarButton(Me.components)
        Me.Fax_DPI = New AddinExpress.MSO.ADXCommandBarComboBox(Me.components)
        Me.Adxtest = New AddinExpress.MSO.ADXCommandBarButton(Me.components)
        '
        'AdxDMCRM
        '
        Me.AdxDMCRM.CommandBarName = "DMCRM"
        Me.AdxDMCRM.CommandBarTag = "78976be9-1a9c-4ce0-b41c-727b25d32a79"
        Me.AdxDMCRM.Controls.Add(Me.Faxes)
        Me.AdxDMCRM.Controls.Add(Me.Adxtest)
        Me.AdxDMCRM.Position = AddinExpress.MSO.ADXMsoBarPosition.adxMsoBarTop
        Me.AdxDMCRM.RowIndex = 1
        Me.AdxDMCRM.SupportedApps = AddinExpress.MSO.ADXOfficeHostApp.ohaOutlook
        Me.AdxDMCRM.UpdateCounter = 22
        '
        'Faxes
        '
        Me.Faxes.BeginGroup = True
        Me.Faxes.Caption = "Import the Faxes"
        Me.Faxes.Controls.Add(Me.Fax_BW)
        Me.Faxes.Controls.Add(Me.Fax_GreyScale_16)
        Me.Faxes.Controls.Add(Me.Fax_GreyScale_256)
        Me.Faxes.Controls.Add(Me.Fax_Colour_4)
        Me.Faxes.Controls.Add(Me.Fax_Colour_8)
        Me.Faxes.Controls.Add(Me.Fax_Colour_24)
        Me.Faxes.Controls.Add(Me.Fax_DPI)
        Me.Faxes.ControlTag = "4076b9a1-22a1-4499-b4d6-713d94b521c6"
        Me.Faxes.DescriptionText = "Import the Faxes2"
        Me.Faxes.UpdateCounter = 10
        '
        'Fax_BW
        '
        Me.Fax_BW.Caption = "Black && White"
        Me.Fax_BW.ControlTag = "325e24fc-6f8b-45e9-ae5f-795d44be81ee"
        Me.Fax_BW.DescriptionText = "Scan a Fax from the system in Black & White"
        Me.Fax_BW.ImageTransparentColor = System.Drawing.Color.Transparent
        Me.Fax_BW.UpdateCounter = 12
        '
        'Fax_GreyScale_16
        '
        Me.Fax_GreyScale_16.Caption = "GreyScale 4bit"
        Me.Fax_GreyScale_16.ControlTag = "466838d1-8e99-48e6-ab99-61eb901f5414"
        Me.Fax_GreyScale_16.DescriptionText = "Scan a Fax from the system in GreyScale with 16 shades"
        Me.Fax_GreyScale_16.ImageTransparentColor = System.Drawing.Color.Transparent
        Me.Fax_GreyScale_16.UpdateCounter = 9
        '
        'Fax_GreyScale_256
        '
        Me.Fax_GreyScale_256.Caption = "GreyScale 8bit"
        Me.Fax_GreyScale_256.ControlTag = "e5257cb8-f350-4cb2-9c96-dd52370a5777"
        Me.Fax_GreyScale_256.DescriptionText = "Scan a Fax from the system in GreyScale with 256 shades"
        Me.Fax_GreyScale_256.ImageTransparentColor = System.Drawing.Color.Transparent
        Me.Fax_GreyScale_256.UpdateCounter = 11
        '
        'Fax_Colour_4
        '
        Me.Fax_Colour_4.Caption = "Colour 4bit"
        Me.Fax_Colour_4.ControlTag = "66a4a871-6b68-4616-8e2b-e8c0c50d8467"
        Me.Fax_Colour_4.DescriptionText = "Scan a Fax from the system in Colour with 16 shades"
        Me.Fax_Colour_4.ImageTransparentColor = System.Drawing.Color.Transparent
        Me.Fax_Colour_4.UpdateCounter = 9
        '
        'Fax_Colour_8
        '
        Me.Fax_Colour_8.Caption = "Colour 8bit"
        Me.Fax_Colour_8.ControlTag = "43be9c92-1357-478a-a8f3-2d0ce4f57505"
        Me.Fax_Colour_8.DescriptionText = "Scan a Fax from the system in Colour with 256 shades"
        Me.Fax_Colour_8.ImageTransparentColor = System.Drawing.Color.Transparent
        Me.Fax_Colour_8.UpdateCounter = 6
        '
        'Fax_Colour_24
        '
        Me.Fax_Colour_24.Caption = "Colour 24bit"
        Me.Fax_Colour_24.ControlTag = "73bcec98-9552-4e91-8a3b-9c27b22aea5a"
        Me.Fax_Colour_24.DescriptionText = "Scan a Fax from the system in Colour with 16777216 shades"
        Me.Fax_Colour_24.ImageTransparentColor = System.Drawing.Color.Transparent
        Me.Fax_Colour_24.UpdateCounter = 16
        '
        'Fax_DPI
        '
        Me.Fax_DPI.Caption = "Fax DPI"
        Me.Fax_DPI.ControlTag = "f60e146c-bc23-49c8-bf1a-1bfa16855c5b"
        Me.Fax_DPI.DescriptionText = "Fax DPI"
        Me.Fax_DPI.DropDownLines = 3
        Me.Fax_DPI.Items.AddRange(New String() {"100", "200", "240", "300", "400", "500"})
        Me.Fax_DPI.UpdateCounter = 7
        '
        'Adxtest
        '
        Me.Adxtest.Caption = "test"
        Me.Adxtest.ControlTag = "2696abd0-320f-44a3-bd15-73c9ace26ef7"
        Me.Adxtest.ImageTransparentColor = System.Drawing.Color.Transparent
        Me.Adxtest.TooltipText = "this open word"
        Me.Adxtest.UpdateCounter = 4
        '
        'AddinModule
        '
        Me.AddinName = "DMCRM"
        Me.ShimProgID = "DMCRMShim.Proxy"
        Me.SupportedApps = AddinExpress.MSO.ADXOfficeHostApp.ohaOutlook

    End Sub

#End Region

#Region " ADX automatic code "
    'Add-in Module Implementation
    Public Sub New()
        MyBase.New()

        'This call is required by the Component Designer
        InitializeComponent()

        'Add any initialization after the InitializeComponent() call

    End Sub

    'Required by Add-in Express - do not modify
    'the methods within this region

    Public Overrides Function GetContainer() As System.ComponentModel.IContainer
        If components Is Nothing Then
            components = New System.ComponentModel.Container
        End If
        GetContainer = components
    End Function

    <ComRegisterFunctionAttribute()> _
    Public Shared Sub AddinRegister(ByVal t As Type)
        AddinExpress.MSO.ADXAddinModule.ADXRegister(t)
    End Sub

    <ComUnregisterFunctionAttribute()> _
    Public Shared Sub AddinUnregister(ByVal t As Type)
        AddinExpress.MSO.ADXAddinModule.ADXUnregister(t)
    End Sub

    Public Overrides Sub UninstallControls()
        MyBase.UninstallControls()
    End Sub

#End Region



    Private Sub Fax_BW_Click(ByVal sender As Object) Handles Fax_BW.Click
        Dim PID As Boolean
        Dim cmdline As String
        cmdline = """c:Program FilesPixel TranslationsQuickScanquickscn.exe"" /cmd commandlinefile=""" + cmddir + "Fax - BW.txt"" statusreport=""" + status_report_file + """"
        MsgBox(cmdline)
        cmdline = "c:WINDOWS
otepad.exe"
        '  PID = Shell(cmdline, AppWinStyle.NormalFocus, True, 600000)

        msgbox("test")

    End Sub



End Class

Posted 22 Jun, 2005 06:34:49 Top
Aleksey Zhigar


Add-in Express team


Posts: 28
Joined: 2005-02-03
1.Check out please if your add-in is registered in the following registry branch HKEY_CURRENT_USER\Software\Microsoft\Office\Outlook\Addins. if it is not there, register the add-in anew.
2. Probobly your add-in got into the list of disabled items. it happens if the add-in code contains some error. Look up at Help->About->Disabled Items.
Posted 22 Jun, 2005 07:07:04 Top
Jonathan Dorling




Posts: 31
Joined: 2005-06-14
thanks for that

1) under that registry branch is the below and now the toolbar is display but still no COM Add-IN



Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Office\Outlook\Addins\DMCRMShim.Proxy]
"FriendlyName"="DMCRM"
"Description"=""
"CommandLineSafe"=dword:00000000
"ADXStartMode"="NORMAL"
"LoadBehavior"=dword:00000003

[HKEY_CURRENT_USER\Software\Microsoft\Office\Outlook\Addins\DMCRMShim.Proxy\CommandBars]

[HKEY_CURRENT_USER\Software\Microsoft\Office\Outlook\Addins\DMCRMShim.Proxy\CommandBars\78976be9-1a9c-4ce0-b41c-727b25d32a79]
@="DMCRM"
"UpdateCounter"=dword:0000001c
"InPublisherPresent"=dword:00000001

[HKEY_CURRENT_USER\Software\Microsoft\Office\Outlook\Addins\DMCRMShim.Proxy\Controls]

[HKEY_CURRENT_USER\Software\Microsoft\Office\Outlook\Addins\DMCRMShim.Proxy\Controls\2696abd0-320f-44a3-bd15-73c9ace26ef7]
"CommandBarName"="DMCRM"
"UpdateCounter"=dword:00000004
"Id"=dword:00000001
"InPublisherPresent"=dword:00000001

[HKEY_CURRENT_USER\Software\Microsoft\Office\Outlook\Addins\DMCRMShim.Proxy\Controls\325e24fc-6f8b-45e9-ae5f-795d44be81ee]
"CommandBarName"="DMCRM"
"UpdateCounter"=dword:0000000c
"Id"=dword:00000001
"InPublisherPresent"=dword:00000001

[HKEY_CURRENT_USER\Software\Microsoft\Office\Outlook\Addins\DMCRMShim.Proxy\Controls\4076b9a1-22a1-4499-b4d6-713d94b521c6]
"CommandBarName"="DMCRM"
"UpdateCounter"=dword:0000000a
"Id"=dword:00000001
"InPublisherPresent"=dword:00000001

[HKEY_CURRENT_USER\Software\Microsoft\Office\Outlook\Addins\DMCRMShim.Proxy\Controls\43be9c92-1357-478a-a8f3-2d0ce4f57505]
"CommandBarName"="DMCRM"
"UpdateCounter"=dword:00000006
"Id"=dword:00000001
"InPublisherPresent"=dword:00000001

[HKEY_CURRENT_USER\Software\Microsoft\Office\Outlook\Addins\DMCRMShim.Proxy\Controls\466838d1-8e99-48e6-ab99-61eb901f5414]
"CommandBarName"="DMCRM"
"UpdateCounter"=dword:00000009
"Id"=dword:00000001
"InPublisherPresent"=dword:00000001

[HKEY_CURRENT_USER\Software\Microsoft\Office\Outlook\Addins\DMCRMShim.Proxy\Controls\66a4a871-6b68-4616-8e2b-e8c0c50d8467]
"CommandBarName"="DMCRM"
"UpdateCounter"=dword:00000009
"Id"=dword:00000001
"InPublisherPresent"=dword:00000001

[HKEY_CURRENT_USER\Software\Microsoft\Office\Outlook\Addins\DMCRMShim.Proxy\Controls\73bcec98-9552-4e91-8a3b-9c27b22aea5a]
"CommandBarName"="DMCRM"
"UpdateCounter"=dword:00000010
"Id"=dword:00000001
"InPublisherPresent"=dword:00000001

[HKEY_CURRENT_USER\Software\Microsoft\Office\Outlook\Addins\DMCRMShim.Proxy\Controls\e5257cb8-f350-4cb2-9c96-dd52370a5777]
"CommandBarName"="DMCRM"
"UpdateCounter"=dword:0000000b
"Id"=dword:00000001
"InPublisherPresent"=dword:00000001

[HKEY_CURRENT_USER\Software\Microsoft\Office\Outlook\Addins\DMCRMShim.Proxy\Controls\f60e146c-bc23-49c8-bf1a-1bfa16855c5b]
"CommandBarName"="DMCRM"
"UpdateCounter"=dword:00000007
"Id"=dword:00000001
"InPublisherPresent"=dword:00000001



2) there is nothing under Disabled Items.
Posted 22 Jun, 2005 07:17:32 Top
Aleksey Zhigar


Add-in Express team


Posts: 28
Joined: 2005-02-03
1.Please make sure the DLL of your add-in is in the bin\Debug folder.
2. Try to unregister your add-in and register it anew via Context menu in the Solution Explorer window.
Posted 22 Jun, 2005 07:28:44 Top
Jonathan Dorling




Posts: 31
Joined: 2005-06-14
1) the dll are in the C:\Visual Studio Projects\DMCRM\bin\ not the Debug

2) unregister and inside the registry is only another 3rd party COM add-in i have for outlook which is working

close outlook 2003
it as be unregister and open it again and the toolbar is still there?

close outlook 2003


register it anew via Context menu in the Solution Explorer window.

look in the registry and this is there now



Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Office\Outlook\Addins\DMCRMShim.Proxy]
"FriendlyName"="DMCRM"
"Description"=""
"CommandLineSafe"=dword:00000000
"ADXStartMode"="FIRSTSTART"
"LoadBehavior"=dword:00000003


in VB.net this is the output windows


------ Build started: Project: DMCRMShim, Configuration: Debug Win32 ------

Deleting intermediate files and output files for project 'DMCRMShim', configuration 'Debug|Win32'.
Creating Type Library...
Processing .\DMCRMShim.idl
DMCRMShim.idl
Processing c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\include\oaidl.idl
oaidl.idl
Processing c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\include\objidl.idl
objidl.idl
Processing c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\include\unknwn.idl
unknwn.idl
Processing c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\include\wtypes.idl
wtypes.idl
Processing c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\include\basetsd.h
basetsd.h
Processing c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\include\guiddef.h
guiddef.h
Processing c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\include\ocidl.idl
ocidl.idl
Processing c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\include\oleidl.idl
oleidl.idl
Processing c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\include\servprov.idl
servprov.idl
Processing c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\include\urlmon.idl
urlmon.idl
Processing c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\include\msxml.idl
msxml.idl
Processing .\msaddndr.idl
msaddndr.idl
Processing c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\include\oaidl.acf
oaidl.acf
Processing c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\include\ocidl.acf
ocidl.acf
Creating Type Library...
Processing .\msaddndr.idl
msaddndr.idl
Processing c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\include\oaidl.idl
oaidl.idl
Processing c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\include\objidl.idl
objidl.idl
Processing c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\include\unknwn.idl
unknwn.idl
Processing c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\include\wtypes.idl
wtypes.idl
Processing c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\include\basetsd.h
basetsd.h
Processing c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\include\guiddef.h
guiddef.h
Processing c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\include\oaidl.acf
oaidl.acf
Compiling...
StdAfx.cpp
Compiling...
Proxy.cpp
Loader.cpp
DMCRMShim.cpp
Config.cpp
Generating Code...
Compiling...
msaddndr_i.c
DMCRMShim_i.c
Generating Code...
Compiling resources...
Performing unregistration
Unregistering previous project output for COM Interop...
Linking...
Creating library Debug\DMCRMShim.lib and object Debug\DMCRMShim.exp
Performing registration
Registering project output for COM Interop...
1 file(s) copied.

Build log was saved at "file://c:\Visual Studio Projects\Dmcrm\DMCRMShim\Debug\BuildLog.htm"
DMCRMShim - 0 error(s), 0 warning(s)




open outlook

no COM Add-in and the changes i made to the name of one of the buttons as not be changed.


i trying the example that i frist did went i got add-in express.net which i know works and it did work fine no problems

So what could it be??
Posted 22 Jun, 2005 07:57:56 Top
Aleksey Zhigar


Add-in Express team


Posts: 28
Joined: 2005-02-03
The most proboble cause is a command bar of your add-in is non-temporary.
When unregistering the add-in non-temporary command bars are not removed automatically.
So, do the following:
1. Uregister the add-in.
2. Open Outlook
3. Go to Tools->Customize
4. Delete all buttons of your command bar
5. Delete your command bar
6. Close Outlook
7. Register the add-in

IMPORTANT! All command bars in Outlook must be TEMPORARY.
Posted 22 Jun, 2005 08:17:41 Top
Jonathan Dorling




Posts: 31
Joined: 2005-06-14
that did up date the toolbar but still no COM add-in for my project??
Posted 22 Jun, 2005 08:33:37 Top
Aleksey Zhigar


Add-in Express team


Posts: 28
Joined: 2005-02-03
Can you send me your project for testing (without external modules)
I`ll send you my email address by email.
Posted 22 Jun, 2005 08:47:37 Top
Jonathan Dorling




Posts: 31
Joined: 2005-06-14
i send you the project over on the 22th

how work out the problem??
Posted 23 Jun, 2005 05:32:35 Top
Aleksey Zhigar


Add-in Express team


Posts: 28
Joined: 2005-02-03
Hi Jonathan.

I still can't reproduce the issue.
Let's do the following:

1. Close Outlook.
2. Open your project and unregister it via the Unregister ADX Project option in the VS context menu.
3. Open the system registry editor (regedit.exe) and open the Find dialog (Ctrl+F).
4. Type in the name of your add-in (DMCRM) and click find.
5. Remove all references to your project in the system registry if they
6. Open your project and register it via the Register ADX Project option.
7. Open Outlook.

Do you see your add-in in the COM Add-ins dialog?
Posted 23 Jun, 2005 05:49:00 Top