Quantcast
Channel: NetOffice - MS Office in .NET
Viewing all articles
Browse latest Browse all 1741

New Post: RequestComAddinAutomationService Netoffice

$
0
0
hello dominik,

thanks for pointing this out. i did not realize vsto spend a property like this and add to my to do list.

A quick hotfix in c# is to use the OnConnection event. something like this:

// create an instance of 'MyClass' and set to addin 'Object' property
void Addin_OnConnection(object Application, ext_ConnectMode ConnectMode, object AddInInst, ref Array custom)
{
        object[] param = new object[1];
        param[0] = new MyClass();
        Application.GetType().InvokeMember("Object", System.Reflection.BindingFlags.SetProperty, null, AddInInst, param);
}

*hope this help
I want give a notification here when RequestComAddinAutomationService is available in NetOffice (next preview release).

Sebastian

Viewing all articles
Browse latest Browse all 1741

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>