Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
|
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 27th, 2005, 07:06 AM
Authorized User
 
Join Date: May 2005
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problem regarding the add ins for outlook

Hi All
I have made a new project as add ins for the outlook and add this code

using System;
using Microsoft.Office.Core;
using Extensibility;
using System.Runtime.InteropServices;
using Outlook;

namespace outlookintegration
{
 #region Read me for Add-in installation and setup information.
 // When run, the Add-in wizard prepared the registry for the Add-in.
 // At a later time, if the Add-in becomes unavailable for reasons such as:
 // 1) You moved this project to a computer other than which is was originally created on.
 // 2) You chose 'Yes' when presented with a message asking if you wish to remove the Add-in.
 // 3) Registry corruption.
 // you will need to re-register the Add-in by building the MyAddin21Setup project
 // by right clicking the project in the Solution Explorer, then choosing install.
 #endregion

 /// <summary>
 /// The object for implementing an Add-in.
 /// </summary>
 /// <seealso class='IDTExtensibility2' />
 [GuidAttribute("27CB45B1-538F-49D6-B91B-19F3000D5A1C"), ProgId("outlookintegration.Connect")]
 public class Connect : Object, Extensibility.IDTExtensibility2
 {
  /// <summary>
  /// Implements the constructor for the Add-in object.
  /// Place your initialization code within this method.
  /// </summary>
  ///

  public Connect()
  {

  }

  /// <summary>
  /// Implements the OnConnection method of the IDTExtensibility2 interface.
  /// Receives notification that the Add-in is being loaded.
  /// </summary>
  /// <param term='application'>
  /// Root object of the host application.
  /// </param>
  /// <param term='connectMode'>
  /// Describes how the Add-in is being loaded.
  /// </param>
  /// <param term='addInInst'>
  /// Object representing this Add-in.
  /// </param>
  /// <seealso class='IDTExtensibility2' />
  public void OnConnection(object application, Extensibility.ext_ConnectMode connectMode, object addInInst, ref System.Array custom)
  {

  }

  /// <summary>
  /// Implements the OnDisconnection method of the IDTExtensibility2 interface.
  /// Receives notification that the Add-in is being unloaded.
  /// </summary>
  /// <param term='disconnectMode'>
  /// Describes how the Add-in is being unloaded.
  /// </param>
  /// <param term='custom'>
  /// Array of parameters that are host application specific.
  /// </param>
  /// <seealso class='IDTExtensibility2' />
  public void OnDisconnection(Extensibility.ext_DisconnectMode disconnectMode, ref System.Array custom)
  {

  }

  /// <summary>
  /// Implements the OnAddInsUpdate method of the IDTExtensibility2 interface.
  /// Receives notification that the collection of Add-ins has changed.
  /// </summary>
  /// <param term='custom'>
  /// Array of parameters that are host application specific.
  /// </param>
  /// <seealso class='IDTExtensibility2' />
  public void OnAddInsUpdate(ref System.Array custom)
  {

  }

  /// <summary>
  /// Implements the OnStartupComplete method of the IDTExtensibility2 interface.
  /// Receives notification that the host application has completed loading.
  /// </summary>
  /// <param term='custom'>
  /// Array of parameters that are host application specific.
  /// </param>
  /// <seealso class='IDTExtensibility2' />
  public void OnStartupComplete(ref System.Array custom)
  {

  }

  /// <summary>
  /// Implements the OnBeginShutdown method of the IDTExtensibility2 interface.
  /// Receives notification that the host application is being unloaded.
  /// </summary>
  /// <param term='custom'>
  /// Array of parameters that are host application specific.
  /// </param>
  /// <seealso class='IDTExtensibility2' />
  public void OnBeginShutdown(ref System.Array custom)
  {

  }
 }
}

But while i am writing some code in the onconnection or the onstartupcomplete then nothing is happening i dont know what the problem is pls help me







Similar Threads
Thread Thread Starter Forum Replies Last Post
Office Add-ins Virath BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 0 April 21st, 2008 03:37 AM
Add Push button or Check Box in outlook add-ins capdevs VS.NET 2002/2003 0 January 7th, 2006 08:51 AM
VBE Add-ins crmpicco Excel VBA 0 May 11th, 2005 06:59 AM
Add-Ins jacemiles BOOK: Beginning Access VBA 0 February 2nd, 2004 12:40 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.