void Microsoft.Office.Interop.Excel.IRtdServer.ServerTerminate() { try { m_RTDSupport.Finalize(); m_RTDSupport = null; } catch (Exception myE) { } }
private void button1_Click(object sender, EventArgs e) { m_Client = K2BaseSvrClient.K2SVRRTDSvrClient.Instance(); m_Client.UpdateNotify += new K2BaseSvrClient.OnUpdateNotify(OnUpdateNotify); m_Client.UpdateStatus += new K2BaseSvrClient.OnUpdateStatus(OnStatusNotify); m_Client.StartServer("RTDTEST"); subProduct(txtTopicID.Text, txtHeader.Text); subProduct(txtTopicID.Text, txtHeader.Text); subProduct(txtTopicID.Text, txtHeader.Text); subProduct(txtTopicID.Text, txtHeader.Text); subProduct(txtTopicID.Text, txtHeader.Text); subProduct(txtTopicID.Text, txtHeader.Text); }
int Microsoft.Office.Interop.Excel.IRtdServer.ServerStart(Microsoft.Office.Interop.Excel.IRTDUpdateEvent CallbackObject) { try { m_RTDSupport = K2BaseSvrClient.K2SVRRTDSvrClient.Instance(); m_callback = CallbackObject; m_RTDSupport.UpdateNotify += new K2BaseSvrClient.OnUpdateNotify(OnUpdateNofiy); m_RTDSupport.StartServer("K2RTDX"); } catch (Exception myE) { } return 1; }
private void btnInitSupport_Click(object sender, EventArgs e) { m_Client = K2BaseSvrClient.K2SVRRTDSvrClient.Instance(); m_Client.UpdateNotify += new K2BaseSvrClient.OnUpdateNotify(OnUpdateNotify); m_Client.UpdateStatus += new K2BaseSvrClient.OnUpdateStatus(OnStatusNotify); m_Client.StartServer("RTDTEST"); }