trigger an add-in

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,
 
K

Ken Slovak - [MVP - Outlook]

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()
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top