trigger an add-in

  • Thread starter Thread starter JugHeaD JoNEs
  • Start date Start date
J

JugHeaD JoNEs

Hi,

Is there any way to trigger an outlook add-in from a webpage ?.

In my case, I am doing some search in the add-in. can this search be
triggered through asp.net

Thanks,
 
You can toggle an addin off and on using the Connect property but it doesn't
sound like that's what you want. If you want to call a method in your addin
from external code you can do that. You must declare the method as public in
the designer or set up a class to expose any methods you want to be
calleable externally and instantiate that class and declare an instance of
it public in the designer.

Then you locate your addin using something like
Application.COMAddins("MyAddin.Connect") and use the public method from
that:

In the Designer:

Public Sub MyPublicSub()
'could be function too.
'whatever
End Sub

In On_Connection of the addin:

AddInInst.Object = Me

In the code you want to use to call the Sub:

Dim oAddinBase As Object

Set oAddinBase = objOL.COMAddIns("MyAddin.Connect").Object
Call oAddinBase.MyPublicSub()
 
Back
Top