小编Com*_*Eel的帖子

获取"错误1"命名空间"Microsoft"中不存在类型或命名空间名称"Office"(您是否缺少程序集引用?)"错误

我一直试图在我的代码中运行这两行:

using Excel = Microsoft.Office.Interop.Excel;
using Word = Microsoft.Office.Interop.Word;
Run Code Online (Sandbox Code Playgroud)

出于某种原因,我不断收到此错误:

Error   1   The type or namespace name 'Office' does not exist in the namespace 'Microsoft'
(are you missing an assembly reference?)
Run Code Online (Sandbox Code Playgroud)

有没有人知道如何配置正确的组件到Visual Studios 2013,使这些线路工作?他们在Visual Studios 2010中运作良好.非常感谢您的帮助......谢谢

c#

0
推荐指数
1
解决办法
2万
查看次数

标签 统计

c# ×1