.找不到引用microsoft.office.core

解决方法

表 1. 具有相同版本号以及用相同密钥签署的 Office 2003 应用程序和组件类型库

Office 2003 应用程序或组件

主 Interop 程序集名

主 Interop 程序集命名空间

Microsoft Access 11.0 Object Library

Microsoft.Office.Interop.Access.dll

Microsoft.Office.Interop.Access

Microsoft Excel 11.0 Object Library

Microsoft.Office.Interop.Excel.dll

Microsoft.Office.Interop.Excel

Microsoft Forms 2.0 Object Library

Microsoft.Vbe.Interop.Forms.dll

Microsoft.Vbe.Interop.Forms

Microsoft FrontPage 6.0 Page Object Reference Library

Microsoft.Office.Interop.FrontPageEditor.dll

Microsoft.Office.Interop.FrontPageEditor

Microsoft FrontPage 6.0 Web Object Reference Library

Microsoft.Office.Interop.FrontPage.dll

Microsoft.Office.Interop.FrontPage

Microsoft Graph 11.0 Object Library

Microsoft.Office.Interop.Graph.dll

Microsoft.Office.Interop.Graph

Microsoft InfoPath 1.0 Type Library

Microsoft.Office.Interop.InfoPath.dll

Microsoft.Office.Interop.InfoPath

Microsoft Office 11.0 Object Library

Office.dll

Microsoft.Office.Core

Microsoft Office Outlook View Control

Microsoft.Office.Interop.OutlookViewCtl.dll

Microsoft.Office.Interop.OutlookViewCtl

Microsoft Office Web Components 11.0

Microsoft.Office.Interop.Owc11.dll

Microsoft.Office.Interop.Owc11

Microsoft Outlook 11.0 Object Library

Microsoft.Office.Interop.Outlook.dll

Microsoft.Office.Interop.Outlook

Microsoft PowerPoint 11.0 Object Library

Microsoft.Office.Interop.PowerPoint.dll

Microsoft.Office.Interop.PowerPoint

Microsoft Project 11.0 Object Library

Microsoft.Office.Interop.MSProject.dll

Microsoft.Office.Interop.MSProject

Microsoft Publisher 11.0 Object Library

Microsoft.Office.Interop.Publisher.dll

Microsoft.Office.Interop.Publisher

Microsoft SmartTag 2.0 Type Library

Microsoft.Office.Interop.SmartTag.dll

Microsoft.Office.Interop.SmartTag

Microsoft Visio 11.0 Type Library

Microsoft.Office.Interop.Visio.dll

Microsoft.Office.Interop.Visio

Microsoft Visual Basic 6.0 Extensibility

Microsoft.Vbe.Interop.dll

Microsoft.Vbe.Interop

Microsoft Word 11.0 Object Library

Microsoft.Office.Interop.Word.dll

Microsoft.Office.Interop.Word

控制面板->添加删除程序->选择更改

  

增加新的功能->选择第一个

这一步比较重要,注意图上的红线部分,不然没有什么更新的!!

把支持.net增加上就可以了

 

最后一步

 

第一个图已经用蓝色标记出来为什么要引用这个类库了!!

这二个是2003版本的office!

posted @ 2012-05-26 08:58  AllanChen  阅读(2805)  评论(0编辑  收藏  举报