c# MSOffice Interop Word will not kill winword.exe

前端 未结 5 1600
野趣味
野趣味 2021-01-04 11:04

I\'m writing an application that needed a MSWord document parser.

I\'m using Microsoft.Office.Interop.Word.Document to extract the texts from the documents, but even

5条回答
  •  甜味超标
    2021-01-04 11:38

    After performing the app.Quit(), you must do app = null; From my experiences, this will prevent leftover processes from hanging around. Just be sure to do the app.Quit() and app = null in your exception handler as well.

提交回复
热议问题