francois_ruel

Call custom method in ProcessBook c# Addin

Discussion created by francois_ruel on Aug 28, 2013
Latest reply on Sep 3, 2013 by dhollebeek

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");
}

Outcomes