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(); }
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(); }