关于Office外接程序(AddIn)开发的问题
lpwcz 2008-02-19 02:44:54 添加引用命名空间“using Office = Microsoft.Office.Core;“
在用到 Word.Application wordapp=new Microsoft.Office.Interop.Word.Application();
Office.CommandBar menubar = (Office.CommandBar)wordapp.CommandBars.ActiveMenuBar;
时出现问题,错误提示为Error 8“The type 'Microsoft.Office.Core.CommandBars' is defined in an assembly that is not referenced. You must add a reference to assembly 'office, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c'”(定义类型'Microsoft.Office.Core.CommandBars'的集合没哟被引用,必须添加一个对集合“'office, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c'”的引用)
对于Microsoft.Office.Core我已经添加了Microsoft Office 11.0 Object Library,但还是存在这个问题,请问如何解决。