做word,excel时需要引用com

点击  添加引用

添加完成后 在项目中

using Word = Microsoft.Office.Interop.Word;
using Excel = Microsoft.Office.Interop.Excel;

 

posted @ 2013-06-07 10:27  梦醒心晴  Views(461)  Comments(0)    收藏  举报