WinWord.exe won't quit after calling Word.Documents.Add - Word .NET Interop

后端 未结 13 1840
没有蜡笔的小新
没有蜡笔的小新 2020-11-30 06:27

I\'m running into the classic scenario where, when creating Word COM objects in .NET (via the Microsoft.Office.Interop.Word assembly), the WinWord process won\'t exit even t

13条回答
  •  广开言路
    2020-11-30 07:08

    this is a perfect solution, i had same problem, i just followed this one and it is working perfect.

    object objFalse = false;

    wordApplication.Quit(ref objFalse, ref objFalse, ref objFalse);

提交回复
热议问题