1、winform中嵌入excel后,打开form界面,里面的excle用鼠标点不到单元格里,找不到焦点,只有按键盘,才能点到单元格上2、在退出winform时,excel后弹出一个错误窗口,提示“遇到问题需要关闭,我们对此引起的不便表示抱歉”
已做写了退出的代码了
EA.Workbooks.get_Item(1).Close(false, missing,missing);
                EA.Workbooks.Close();                wordWnd = 0;
                EA.Quit();                WS = null;
                EA = null;
                
                System.Runtime.InteropServices.Marshal.ReleaseComObject(WS);
                System.Runtime.InteropServices.Marshal.ReleaseComObject(WK);
                System.Runtime.InteropServices.Marshal.ReleaseComObject(EA.Workbooks);
                System.Runtime.InteropServices.Marshal.ReleaseComObject(EA);                   GC.Collect();不知道大家有没有遇到过这样的情况
能不能跟我说下是什么原因
谢谢了