John Murray
Posts: 11
Joined: 2005-12-08
|
In a post in 2004, Eugene said, " You can call a COM add-in if it publishes anything via its type library. Try to import its tlb. If there are some objects (interfaces) you win :-)
You can create a new public method and then can call it via
WordApplication.COMAddins(ProgIDOfYourAddin).Object.YourNewMethod
Done?
Would this make it possible to see a COM Add-in's functions under Word's keyboard customization dialog box?
Does one have to do this with the Type Library Exporter (Tlbexp.exe) tool, or is it possible to configure this through VStudio?
Thank you,
John Murray |
|
Sergey Grischenko
Add-in Express team
Posts: 7235
Joined: 2004-07-05
|
Hi John.
You need to create a new macro in Word and then bind this macro with the keybord. In the code of the macro you can call the public methods of your add-in through the Object property of the COMAddin class. |
|
John Murray
Posts: 11
Joined: 2005-12-08
|
Sergey
I have gotten this to work successfully using the VBA macros linked to a keybindings keyboard command. I was hoping to accomplish this same task without needing to add a template containing the VBA code to the user's machine. I can see that that will not be possible.
Thank you,
John |
|