在Windows服务器中使用Word对象

发布于 2024-12-21 10:49:11 字数 232 浏览 2 评论 0原文

我有 asp.net 应用程序,它有时会获取 Word 文档,编辑其中的一些数据并将其发送到电子邮件。 虽然这在我有 microsoft word 的本地计算机上运行良好,但当我尝试在没有安装 microsoft word 的 Windows 服务器上执行相同的操作时,该文档不会创建,而且似乎什么也没有发生。 有谁可以告诉我需要安装什么才能正常工作,我需要安装普通的 Microsoft Word 应用程序还是可以安装一些程序集? 谢谢,拉齐亚莱

I have asp.net app which at some point takes word document, edits some of the data there and sends it to email.
While this is running good on my local computer where I have microsoft word, when I am trying to do the same thing from windows server without microsoft word installed, the document doesn't get created, and it seems that nothing is happening.
Does anyone can tell me what do I need to install for this to work, do I need to install normal microsoft word application or I can install some assemblies?
Thanks, Laziale

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

心的位置 2024-12-28 10:49:11

有第 3 方工具可以执行此操作,您不应该直接使用 MS Word 执行此操作。

Microsoft 目前不建议也不支持通过任何无人值守、非交互式客户端应用程序或组件(包括 ASP、ASP.NET、DCOM 和 NT 服务)实现 Microsoft Office 应用程序的自动化,因为 Office 可能会表现出不稳定的情况Office 在此环境中运行时的行为和/或死锁。

http://support.microsoft.com/kb/257757

There are 3rd party tools that do this, you should NOT do it with MS Word directly.

Microsoft does not currently recommend, and does not support, Automation of Microsoft Office applications from any unattended, non-interactive client application or component (including ASP, ASP.NET, DCOM, and NT Services), because Office may exhibit unstable behavior and/or deadlock when Office is run in this environment.

http://support.microsoft.com/kb/257757

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文