Close MS Office C# Console
问题 I'm writing an automated test to determine whether or not rtf files are successfully opened by MS Word. So far I looping through all the rtfs within a given directory and opening them. Later I will have to catch exceptions to generate a report (log the file name that crashed word). I am processing a large number of files. My application is currently opening a new instance of Word for each file. Can someone tell me how to close Word? public class LoadRTFDoc { private object FileName; private