I have the following setting: I wrote an add-in for Visio 2010 with VSTO and this add-in adds another ribbon to the UI. From this user-interface, it is possible to open new forms and do some cool stuff.
With the elder version of the tool I rewrote, it was possible to right-click on a shape and open a form directly from the shape. This was done, by adding an action to the shape that looked like:
=RUNADDON("VS2.EXE")
where VS2.exe was the executable that opened another form (which had to be in the search-path of Visio).
My question is, if there is an easy way of calling a method in the add-in/ribbon from inside of the shape action or not? Something like:
=RUNADDON("MyAddIn.MyMethod()")
Related information I found (but didn't answer this question) were
- How to call a VSTO AddIn method from a separate C# project?
- http://msdn.microsoft.com/en-us/library/bb608621.aspx
- http://msdn.microsoft.com/en-us/library/aa200979%28office.10%29.aspx
- http://msdn.microsoft.com/en-us/library/ff767833.aspx
Thanks for any reply or suggestion.