Communicate with a COM add-in from a standalone application with Parameters

Add-in Express™ Support Service
That's what is more important than anything else

Communicate with a COM add-in from a standalone application with Parameters
 
AdamK




Posts: 25
Joined: 2014-03-09
How would I call a COM AddIn from a standalone application and pass it a parameter
Something like create a word document from the application and pass to the COM AddIn the current open word document?

Thus being able to execute a certain Sub or Function within the COM Addin and pass it parameters?
Posted 11 Sep, 2019 01:30:51 Top
Dmitry Kostochko


Add-in Express team


Posts: 2841
Joined: 2004-04-05
Hi Adam,

Please have a look at the following blog post:
HowTo: Communicate with a COM add-in from a standalone application

You can pass parameters by using the args array of the InvokeMember method:
https://docs.microsoft.com/en-us/dotnet/api/system.type.invokemember
Posted 11 Sep, 2019 04:14:31 Top