点击 添加引用
添加完成后 在项目中
using Word = Microsoft.Office.Interop.Word;using Excel = Microsoft.Office.Interop.Excel;