Office Interop [英] Office Interop

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

问题描述

尝试使用以下语句:

using Outlook = Microsoft.Office.Interop.Outlook;

编译器无法找到Microsoft.Office.Core程序集;

Compiler balks as not being able to find th Microsoft.Office.Core assembly;




在构建配置设置为x86的64位计算机上...

On a 64-bit machine with build configuration set to x86...

建议?

我已经确保根据Microsoft KB选择了相应的COM对象。

I already have made sure the approtiate COM objects are selected as per the Microsoft KB.

问候,

Leif

推荐答案

嗨Leif,

>>编译器无法找到Microsoft.Office.Core汇编

您能否与我们分享有关您的步骤的更多信息?错误消息?

我使用以下步骤进行了测试,它在我身边正常工作。


  1. 创建一个简单的winform项目
  2. 添加Microsoft Outlook 16.0对象库和Microsoft Office 16.0对象库
  3. 添加"使用Outlook = Microsoft.Office.Interop.Outlook;"
  4. 使用配置平台目标构建为x86。
  1. Create a simple winform project
  2. Add Microsoft Outlook 16.0 Object Library and Microsoft Office 16.0 Object Library
  3. Add "using Outlook = Microsoft.Office.Interop.Outlook;"
  4. Build with configuration platform target as x86.

最诚挚的问候,

Edward

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

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