Microsoft.Office.Interop.Excel.Application app = Globals.ThisAddIn.Application;
DirectoryInfo f_path = new DirectoryInfo(string.Format(@"{0}....\", System.AppDomain.CurrentDomain.BaseDirectory));
Microsoft.Office.Interop.Excel.Workbook xBook = app.Workbooks.Open(f_path.FullName+@"excel2.xlsx");
发布机器和调试的机器 是同一个吗?