ActiveWindow in merged context

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

ActiveWindow in merged context
ActiveWindow merge 
Thibault Martin




Posts: 13
Joined: 2014-08-27
I've been able to connect to addin mergemodule this way :
e1cPPT.getActivePPApp.COMAddIns.Item("GID").Object

But i can't find the type of this object.
Could you once again help me?

Thanks,
Regards,
Posted 28 Aug, 2014 10:31:07 Top
Andrei Smolin


Add-in Express team


Posts: 16979
Joined: 2006-05-11
You can define a public method or property on the module(s) and try to call it using late binding.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 28 Aug, 2014 10:56:42 Top
Thibault Martin




Posts: 13
Joined: 2014-08-27
Strict on avoid me to late bind object.
How to do this while staying in strict on environnement ?


Thanks,
Thanks,
Thanks,

:)
Posted 28 Aug, 2014 12:28:24 Top
Andrei Smolin


Add-in Express team


Posts: 16979
Joined: 2006-05-11
Hello Thibault,

You need to use System.Type.InvokeMember(), see e.g. http://msdn.microsoft.com/en-us/library/66btctbe%28v=vs.110%29.aspx. There's a lot of samples on the forum, see http://www.add-in-express.com/forum/search.php?tags=&q=InvokeMember&filter=inforums.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 29 Aug, 2014 01:17:55 Top