> Outlook code can't respond directly to a click in server-side ASPX code.
> You'd have to find a way to notify the Outlook code that the click had
[quoted text clipped - 15 lines]
> >
> > Ravi
If the code is running on the client machine you can iterate the
Outlook.Application.COMAddIns collection. That has all addins. You can
locate yours and reference it. This little snippet assumes using VB.NET, it
would be different using C#:
' In Connect class:
Private addInInstance As Office.COMAddIn = Nothing
' In OnConnection() event handler
addInInstance = TryCast(addInInst, Office.COMAddIn)
addInInstance.Object = Me ' critical setting
' Public Sub that can be called from outside the addin
Public Sub CalledFromOutside()
' do whatever you want
End Sub
Your external code that works with the Web service can then get your COM
addin from the Outlook.Application.COMAddIns collection and use code like
this to call that CalledFromOutside() method:
Dim myAddin As Office.COMAddIn = olApp.COMAddIns.Item("myAddin.Connect")
If (myAddin IsNot Nothing) Then
myAddin.Object.CalledFromOutside()
End If
That CalledFromOutside() method can take arguments like a flag or whatever.

Signature
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm
> Hello Ken,
>
[quoted text clipped - 12 lines]
>
> Thanks In advance.
Neetu - 29 Jan 2008 10:16 GMT
in our case, outside code is inside aspx page hosted inside outlook, which
gets open on click of addin folder in folder struture of outlook.
> If the code is running on the client machine you can iterate the
> Outlook.Application.COMAddIns collection. That has all addins. You can
[quoted text clipped - 42 lines]
> >
> > Thanks In advance.
Ken Slovak - [MVP - Outlook] - 29 Jan 2008 15:59 GMT
Is there a question there?

Signature
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm
> in our case, outside code is inside aspx page hosted inside outlook, which
> gets open on click of addin folder in folder struture of outlook.