Disposing of Microsoft.Office.Interop.Word.Application
问题 (Somewhat of a follow on from the post (which remains unanswered): https://stackoverflow.com/q/6197829/314661) Using the following code Application app = new Application(); _Document doc = app.Documents.Open(\"myDocPath.docx\", false, false, false); doc.PrintOut(false); doc.Close(); I am attempting to open and print a file programmatically. The problem is each time I run the above code a new WINWORD.exe process is started and obviously this quickly eats up all the memory. The application