Look for a thread titled "Outlook 2007 COM add-in callback" in the microsoft.public.office.developer.com.add-ins group, or google for that thread.
I posted a C# example of working with a public method in an addin for VSTO 2005 SE. Make sure to read the entire thread, I made a typo in my original sample code.
-- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm
"David" <maillist[ at ]samarskite.com> wrote in message news:7DC38036-D583-41DF-9A83-32A7EC55E422[ at ]microsoft.com...
[Quoted Text] >I have used VSTO SE to create an Outlook 2003 add-in in C#. > > I would like to be able to invoke a method of the add-in from a separate > application. > (Similar to pollyanna65 post "Programmatically sending email via Outlook > COM Add-In" below). > > > I have created the add-in with a public method. > The add-in is installed an functioning correctly. > > > From another application I get an Outlook.Application class object and > iterate through the COMAddIns collection to find the addin I have created. > > What can I do to this COMAddIn object to allow me to call my method? How > can I cast it to something I can use? > >
|