1 Reply Latest reply on Sep 3, 2013 1:13 PM by dhollebeek

    Call custom method in ProcessBook c# Addin

    francois_ruel

      Hi,

       

      Is it a way to call a method in ProcessBook C# addin via VBA

       

      What I need to do to call HelloWorld()

       

       

       

      C# addin

       

      [ComVisible(true)]

       

      public class Connect : IDTExtensibility2, IDisposable
      {
      public Connect()
      {
      }

       

      ~Connect()
      {
      this.Dispose(false);
      }

      public void OnConnection(object app, Extensibility.ext_ConnectMode connectMode, object addInInst, ref System.Array custom)
      {
      }

      public void OnDisconnection(Extensibility.ext_DisconnectMode removeMode, ref System.Array custom)
      {
      }

      [ComVisible(true)]

       

      public void HelloWorld()
      {
        MessageBox.Show("HelloWorld from c# addin");
      }