使用COM组件的Word文件创建错误 [英] Word file creation error for using COM component

查看:141
本文介绍了使用COM组件的Word文件创建错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的所有专家,

我试图解决2天内的一个错误。但无法修复它。我的应用程序的工作是编辑一个word文件并将其保存在服务器中。



但我在托管后得到一个例外。下面给出了异常消息: -

由于以下错误,检索CLSID为{000209FF-0000-0000-C000-000000000046}的组件的COM类工厂失败:80070005。



我迫切需要的东西。请帮我解决。

尚未修复,任何建议都必须升值。

Dear All Experts,
I am trying to fix one bug from 2 days. But unable to fix it. My application''s work is to edit one word file and saving that in server.

but i am getting one exception after hosting. The exception message is given below:-
Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error: 80070005.

Its something urgently i need. Please help me to fix it.
Not fixed yet, Any suggestion must appreciation.

推荐答案

用于服务器端编程,如ASP .NET,更喜欢使用Open XML SDK而不是Office Interop。看看这篇微软文章:

http:// support.microsoft.com/default.aspx?scid=kb;EN-US;q257757#kb2 [ ^ ]。



使用Open XML SDK: http://www.microsoft.com/en-us/download/details.aspx?id=30425 [ ^ ]。



这样,您可以支持新的基于XML的Office格式(例如.DOCX,.XLSX),ECMA-376标准:

http://en.wikipedia.org/wiki/Microsoft_Office_XML_formats [ ^ ],

http://en.wikipedia.org/wiki/Office_Open_XML [ ^ ]。



这样,您可以在没有安装Office的情况下工作。此外,第三方软件支持这些文档。请查看我过去的答案:

将Office文档转换为PDF而不互操作 [ ^ ],
需要一个相当独特的WPF文本编辑器控件 [ ^ ],

您好如何使用c#.net 在Windows应用程序中显示word文件[ ^ ],

阅读没有使用Interop.word dll的word文件...不想在IIS中安装单词。 [ ^ ]。



这是另一种选择: http://npoi.codeplex.com/ [ ^ ]。



参见: http://support.microsoft.com/default.aspx?scid=kb;EN-US;q257757#kb2 [ ^ ]。



-SA
For the server-side programming such as ASP.NET, prefer using Open XML SDK instead of Office Interop. Look at this Microsoft article:
http://support.microsoft.com/default.aspx?scid=kb;EN-US;q257757#kb2[^].

Use Open XML SDK: http://www.microsoft.com/en-us/download/details.aspx?id=30425[^].

This way, you can support new XML-based Office formats (such as .DOCX, .XLSX), ECMA-376 standard:
http://en.wikipedia.org/wiki/Microsoft_Office_XML_formats[^],
http://en.wikipedia.org/wiki/Office_Open_XML[^].

This way, you can work without Office installed. Also, the documents are supported by 3rd-party software. Please see my past answers:
Convert Office-Documents to PDF without interop[^],
Need a rather unique WPF text editor control[^],
Hi how can i display word file in windows application using c#.net[^],
Read a word file without using Interop.word dll...Do not want to install word in IIS..[^].

This is another option: http://npoi.codeplex.com/[^].

See also: http://support.microsoft.com/default.aspx?scid=kb;EN-US;q257757#kb2[^].

—SA


这篇关于使用COM组件的Word文件创建错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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