之前寫的類存在Excel進程不能結束的Bug,重寫ExcelReader類,類實例清理時Excel進程自動結束. class ExcelReader { // Excel Object public Application app; public Workbooks wbs; public Workbook wb; public Worksheet ws; public Range rng; private bool disposed = false; public ExcelReader()…