using word object in windows server

泪湿孤枕 提交于 2019-12-31 05:49:07

问题


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


回答1:


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



来源:https://stackoverflow.com/questions/8524617/using-word-object-in-windows-server

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!