关于错误 [英] Regarding about error

查看:63
本文介绍了关于错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何解决错误
错误2无法将类型"Microsoft.Office.Core.CommandBars []"隐式转换为"Microsoft.Office.Core.CommandBars [c:\ Documents and Settings \ kalaingar \ Desktop \ Interop.Microsoft.Office.Core.dll" ]''C:\ Documents and Settings \ kalaingar \ Desktop \ examples.net \ Project1 \ projectkalai \ projectkalai \ Connect.cs 95 61 projectkalai

how to solve the error
Error 2 Cannot implicitly convert type ''Microsoft.Office.Core.CommandBars []'' to ''Microsoft.Office.Core.CommandBars [c:\Documents and Settings\kalaingar\Desktop\Interop.Microsoft.Office.Core.dll]'' C:\Documents and Settings\kalaingar\Desktop\examples.net\Project1\projectkalai\projectkalai\Connect.cs 95 61 projectkalai

推荐答案

您无法存储将一个对象数组变成单个对象.
You cannot store an array of objects into a single object.


尝试从Microsoft.Office.Core.CommandBars [] 对象中拾取一个元素,然后将其分配给Microsoft.Office.Core.CommandBars对象.
Try picking up one element from the Microsoft.Office.Core.CommandBars [] object and then assign it to the Microsoft.Office.Core.CommandBars object.


这篇关于关于错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆