First of all, thanks a lot for this fantastic library! I have been working (and fighting) with interop calls to MS Office via .Net for so many years and now it's so easy to work with it.
I have a question concerning a problem which occurred today when I was trying to access a VBA method inside an addin.
The application is loaded like this, also the addin is loaded:
var app = new Application();
var addin = app.AddIns.Add("addinFileName.ppam");
addin.AutoLoad = MsoTriState.msoFalse;
addin.Loaded = MsoTriState.msoTrue;
When I set the visibility of the PowerPoint to true, I can see the addin is loaded properly.
Next, I open a presentation (I don't add the code because this is not important).
And now, I try to access a test method in the addin like this:
var result = app.Run("addinFileName.ppam!TestAddin", "test");
Before executing this code I tested the way I access the macro code (which is a simple public function expecting a string and returning also a string) inside the PowerPoint VBA editor directly....this works.
When I execute the above C# code I always get a COM exception saying:
"Sub or function not defined"
Does anybody out there have ever tried to access a macro of an addin with NetOffice?
Thanks a lot in advance.