使用Word对象在Windows Server [英] using word object in windows server

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

问题描述

我有asp.net应用程序,它在某些时候需要的word文档,编辑一些有数据并将其发送电子邮件。
虽然这是我运行本地计算机上的好,我有Microsoft Word中,当我试图做从Windows Server同样的事情没有安装Microsoft Word,文件还没有生成,而且似乎什么也没有发生。
有没有人能告诉我,我需要这个安装工作​​,做我需要安装正常的Microsoft Word应用程序或我可以安装一些组件?
谢谢,Laziale

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

推荐答案

有第三方工具,这样做,你不应该的MS Word做直接。

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

微软目前并不提倡,不支持,Microsoft Office应用程序的自动化,从任何无人参与的非交互式客户端应用程序或组件(包括ASP,ASP.NET,DCOM和NT服务),因为Office可能会出现不稳定当Office在这种环境中运行的行为和/或死锁。

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

这篇关于使用Word对象在Windows Server的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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