类型或名称空间名称"Interop"在名称空间"Microsoft.Office"中不存在(您是否缺少程序集引用?) [英] The type or namespace name 'Interop' does not exist in the namespace 'Microsoft.Office' (are you missing an assembly reference?)
问题描述
全部
Microsoft.Office.Interop.Outlook.Application objOutlook;
Microsoft.Office.Interop.Outlook.NameSpace objNamespace;
Microsoft.Office.Interop.Outlook.MAPIFolder objMAPIFolder;
Microsoft.Office.Interop.Outlook.MailItem objItem;
Microsoft.Office.Interop.Outlook.UserProperty objProp;
我使用这段代码来生成新的消息窗口
>我正在使用Microsoft Office 2003产品中的参考Microsoft.office.Interop.Outlook,version = 11.0.0.0
当我在clinet机器中安装应用程序时,它在开发系统中正常工作
没有Microsoft Office 2003,因此会引发缺少程序集的异常
如何在没有在客户端计算机上安装Microsoft Office 2003的情况下实现此目标?
Hi all
Microsoft.Office.Interop.Outlook.Application objOutlook;
Microsoft.Office.Interop.Outlook.NameSpace objNamespace;
Microsoft.Office.Interop.Outlook.MAPIFolder objMAPIFolder;
Microsoft.Office.Interop.Outlook.MailItem objItem;
Microsoft.Office.Interop.Outlook.UserProperty objProp;
I use this piece of code to generate new message window
I am using the reference Microsoft.office.Interop.Outlook,version=11.0.0.0 from the Product Microsoft office 2003
It works in fine in development System
When I Install my application in the clinet machine ,where I dont have Microsoft office 2003
So It throws Assembly missing Exception
How Can I achieve this ,With out Installing Microsoft office 2003 in the Client machine
推荐答案
您好,这个论坛是为了支持互操作性问题.
如果有人已经问过类似的问题,我建议您开始搜索论坛.
http://social.msdn.microsoft.com/Forums/en-us /categories/
然后您可以考虑以下论坛:.Net开发,Office业务应用程序.
有非常有用的社区可以帮助您解答.
谢谢,
Edgar
Hi,This forum is to support Interoperability questions.
I would suggest you start searching the forums in case someone has already asked a similar question.
http://social.msdn.microsoft.com/Forums/en-us/categories/
You might then consider these forums: .Net Development, Office Business Applications.
There are very helpful communities that would help with your answer.
Thanks,
Edgar
这篇关于类型或名称空间名称"Interop"在名称空间"Microsoft.Office"中不存在(您是否缺少程序集引用?)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!