在asp.net中使用的Microsoft.Office.Interop.Word [英] Using Microsoft.Office.Interop.Word in asp.net

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

问题描述

我试图利用我的asp.net应用程序的DLL的Microsoft.Office.Interop.Word。长话短说,内部基于Web的文件管理/编辑系统需要访问的MS Word弗莱什-金凯值一个特设的基础上。我有一个控制台应用程序使用该DLL没有问题,但是当通过asp.net访问我不能得到正确的权限给它。

I'm attempting to leverage the Microsoft.Office.Interop.Word dll in my asp.net application. Long story short, an internal web based document management/editing system requires access to a MS Word flesch-kincaid value on an ad-hoc basis. I have no problem using this dll in a console app, but I can't get the right permissions to it when accessed via asp.net.

检索COM类工厂具有CLSID组件{000209FF-0000-0000-C000-000000000046}失败,原因是出现以下错误:80070005访问被拒绝。 (异常来自HRESULT:0X80070005(E_ACCESSDENIED))。

Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error: 80070005 Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)).

我在<一个尝试了一切href=\"http://social.msdn.microsoft.com/Forums/en-US/netfx64bit/thread/65a355ce-49c1-47f1-8c12-d9cf5f23c53e\"相对=nofollow>没有运气这个论坛主题。我使用.NET 4.0 Win7上,我已经试过MS Word中的32位和64位版本。我也期待更多的头部疼痛,一旦我部署到我们的服务器运行Windows Server 2008 R2标准

I've tried everything in this forum thread with no luck. I'm using .Net 4.0 on Win7, I've tried both 32 and 64 bit versions of MS Word. I'm also anticipating more head-aches once I deploy to our server running Windows Server 2008 R2 Standard

推荐答案

我会使用的OpenXML SDK,而不是为理由todda.speot.is给

I would use the openXML SDK instead for the reason todda.speot.is gives

http://www.microsoft.com/下载/ EN / details.aspx displaylang = EN&放大器;?ID = 5124

http://www.$c$cproject.com/Articles/87711/Manipulate-Docx-with-C-without-Microsoft-Word-inst

这篇关于在asp.net中使用的Microsoft.Office.Interop.Word的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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