1

我在我的 winform 中加入了单词,但出现以下错误:

    System.Runtime.InteropServices.COMException (0x80010001): Call was rejected by callee. (Exception from HRESULT: 0x80010001 (RPC_E_CALL_REJECTED))
   at Microsoft.Office.Interop.Word.DocumentClass.Activate()

当代码执行代码行“doc.ActiveWindow”时。有谁知道或知道如何捕获此异常而不显示它或如何解决它?几天来我一直在努力解决这个问题并且被卡住了。

4

0 回答 0