首页 > 移动平台 > 详细

C#操作Office- Cannot find the interop type that matches the embedded interop type 'Microsoft.Office.Interop.Excel.Application'

时间:2014-11-26 14:04:31      阅读:317      评论:0      收藏:0      [点我收藏+]

网上说

2003 -> 11.0,

2007 -> 12.0.

  因为平时提示"Are you missing an assembly reference?",都是没有引用库文件,但是明明我已经添加好引用了,还是报错.机器上安装的是Office2010,但是在库引用中,v14.0的是不行,Office 2010中的 Excel还是用v12.0.

  处理题目中的错误,是将库文件中的"Embedded Interop Type"属性设置为false即可.(突然记得‘embedded interop type‘,所以猜测,竟然猜对了).

C#操作Office- Cannot find the interop type that matches the embedded interop type 'Microsoft.Office.Interop.Excel.Application'

原文:http://www.cnblogs.com/listened/p/4122969.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!