Interop.Outlook 是多线程的吗?
我需要使用 Outlook Interop 对象,用于生成 .MSG 文件一个网络界面。这就是为什么它们将被不同的线程同时访问。是多线程的吗?
还有一个问题:在服务器上使用Outlook.Application
之前是否需要初始化Outlook(例如帐户设置)?
I need to use Outlook Interop objects for generating .MSG files from a web interface. That's why they will be accessed simultaneously by different threads. Is it multithreaded?
And another question: Does Outlook need to be initialized (e.g. account set) before using Outlook.Application
on a server?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您的问题的简单答案是否。
不要走自动化路线,Office 应用程序并非设计用于在非用户交互环境中使用或在服务器上运行。 Microsoft 发布了相当长的知识库文章来详细说明此问题以前
这不是问题,人们已经摆脱了它,只是忽略了建议。但是,您会发现较新的操作系统(vista/server 2k8/win7)和新版本的 Office 根本不再工作。我强烈建议不要走那条路。
The simple answer to your question is No.
Don't go down the automation route, Office applications are not designed to be used within a non-user interactive environment or to be ran on a server. Microsoft have posted quite a long knowledge base article on this detailing problems from security, scalability etc.
Previously this hasn't been a problem and people have gotten away with it, just ignoring the advice. However you'll find that the newer operating systems (vista/server 2k8/win7) and new versions of Office simply don't work anymore. I highly recommend not going down that route.
据我所知,所有 Office API 都不是为在服务器端工作而设计的,只能在客户端工作。
As far as I know none of the Office API's were designed to work on the server side, only at the client side.