Exemplo n.º 1
0
 private void TestAddin_OnConnection(object Application, NetOffice.Tools.ext_ConnectMode ConnectMode, object AddInInst, ref Array custom)
 {
     Factory.Initialize();
     Office.COMAddIn addin = new Office.COMAddIn(null, AddInInst);
     addin.Object = this;
     addin.Dispose();
 }
Exemplo n.º 2
0
 private void TestAddin_OnConnection(object Application, NetOffice.Tools.ext_ConnectMode ConnectMode, object AddInInst, ref Array custom)
 {
     Office.COMAddIn addin = COMObject.Create <Office.COMAddIn>(AddInInst);
     addin.Object = this;
     addin.Dispose();
 }