Microsoft.Office.Interop.Excel.ApplicationClass can not embedded 的问题

时间:2014-07-11 23:22:55   收藏:0   阅读:218

用c#进行开发时,要做一个excel导入功能,期间使用到Microsoft.Office.Interop.Excel程序集,在用vs2008开发的时候没有报错,将这个程序集引用到vs2010的时候,便报错了:interop type ‘Microsoft.Office.Interop.Excel.ApplicationClass‘ cannot be embedded.

解决方法:点击程序集(DDL),右键-属性,将embed interop types 更改为false.

Microsoft.Office.Interop.Excel.ApplicationClass can not embedded 的问题,布布扣,bubuko.com

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!