Visual Studio Development Bookmark and Share   
 index > Visual Studio Tools for Office > Retrieving Available Excel Add-ins names using C#, VS2008, and Office 2003
 

Retrieving Available Excel Add-ins names using C#, VS2008, and Office 2003

I am new to VSTO programming
I am trying to retreive the names of the available Add-in in an Excel document. Enable specific Add-in (for example Adobe Add-in)  and call Add-in function (for example SaveAsPDF() )
I am using VS2008, C#, and Office 2003
 
Any help with some sample code

Thank you in advance

sam0864  Thursday, October 15, 2009 4:33 AM
Any help?
sam0864  Thursday, October 15, 2009 8:31 PM
Hi Sam

Well, a couple of times I started to answer, then stopped because I'm unsure and haven't any time to do any in-depth testing this week...

You might want to try asking in a specialized Excel-venue about the best way to go about this. You'll find links in the forum's Please Read First message.

For my part, what I've wanted to say is: Whether you can do this will, I think, depend on whether the Add-ins are registered in the HKLM or HKCU hive of the Windows Registry. Only the latter are visible to the UI and (again, I think) to the object model (Application.COMAddins collection). And I believe the Adobe add-ins register in the HKLM (install for all users).

Whether or not you can call a function in an Add-in depends totally on the add-in and whether it provides an exposed OLE interop. For that, you'd have to check with Adobe. Or, if it provides a CommandBarButton object (which is likely the case in this one scenario) you can use the Execute method of the CommandBarButton object to "click" that button.

I'm not sure if this helps, but that's my take on the problem :-)
Cindy Meister, VSTO/Word MVP
Cindy Meister  Friday, October 16, 2009 6:45 AM

You can use google to search for other answers

Custom Search

More Threads

• Fail to open word document
• msi /quiet install does not install allusers in the computer
• VSTO SE on Vista RC1 x64?
• How to add a new worksheet to an already open workbook? C#
• WindowActivate in Word 2007 on Windows XP is not triggered
• ListView Drag n Drop on an Excel Sheet
• Office 2007 FaceId values for CommandBarButtons
• bug with custom table styles generates exception
• Why Excel customer menu only response for one time
• How to ensure that my AddIn is shimmed