部署Office.Interop.Word Word 2010中Server 2008上,并从ASP.NET调用方法 [英] Deploy Office.Interop.Word Word 2010 on Server 2008 and calling methods from ASP.NET

查看:348
本文介绍了部署Office.Interop.Word Word 2010中Server 2008上,并从ASP.NET调用方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想微软Windows Server 2008上部署Microsoft Word 2010和的Microsoft.Office.Interop.Word。

I want to deploy Microsoft Word 2010 and Microsoft.Office.Interop.Word on Microsoft Windows Server 2008.

用户(只是少数)访问.aspx页。数据被输入有或从aspx页的数据库中选择。一旦数据被收集,我想调用服务器上的一个Word应用程序实例,并progematically将数据插入到Word文档中的范围。这DOC被保存在一个文件夹中的服务器和/或下载到用户的本地机器上。

The user (just a few) visits an .ASPX page. Data is input there or selected from the database from the aspx page. Once data is collected, I want to invoke the a Word application instance on the SERVER and progematically insert the data into ranges in the Word document. That doc gets saved in a folder on the server and/or downloaded onto the user's local machine.

我可以部署Microsoft Word和赢2008服务器上互操作程序集?如果没有,是否有另一种解决方案?

Can I deploy Microsoft Word and the interop assemblies on Win 2008 Server? If not, is there another solution?

推荐答案

我面临了同样的错误,花费了我的生活了2天之后,我发现这个解决方案。

i was facing the same error, after spending 2 days of my life i found this solution.

您需要将权限分配给在Microsoft Office 2003 - 2007年物体

You need to assign permissions to the Microsoft office 2003 - 2007 object.

请看看。

第1步

转至组件服务>计算机>我的电脑>并选择DCOM配置
在此之后,转到右侧窗格中,找到Microsoft Word中98 - 2003文档对象

Go to the Component Services > Computers > My Computer > and select DCom Config after this, go to the right pane and find "Microsoft Word 98 - 2003 Document" object

第2步

右键单击该组件并转到属性,然后选择安全选项卡

Right click on the component and go to the properties and select "Security Tab"

第3步

添加网络,NETWORKSERVICE,IIS_IUSRS和管理员用户并为其指定本地和远程访问权限

Add NETWORK, NETWORKSERVICE, IIS_IUSRS and Administrator users and assign them "Local" and "Remote" Access Permissions

第四步

现在转到身份标签,选择本用户
在用户名和密码文本框中键入管理员crediantals和preSS应用和OK(必须保存更改)

Now go to the "Identity tab" and select "This User" In user and password textboxes type administrator crediantals and press "Apply" and "OK (must to save the changes)"

第5步

现在重新启动计算机。
它会工作。

Now restart your machine. it'll works.

问候,

这篇关于部署Office.Interop.Word Word 2010中Server 2008上,并从ASP.NET调用方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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