如何在Web应用程序中读取doc和docx文件 [英] How read doc and docx file in web application

查看:128
本文介绍了如何在Web应用程序中读取doc和docx文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



先生,



您已经提供了如何在asp.net中读取doc和docx文件的代码,C#

谢谢先生,它的工作正常,但它不是Web应用程序的窗口应用程序。

我的项目是Web应用程序。


$ b $请先生,先生,帮助我,我有问题,非常紧急。我会很感激





问候

Nandita

Hi
sir,

You have provide code for How read doc and docx file in asp.net,C#
Thanks sir, Its work fine but it is Window Application not for web application.
my project is web application.

please,sir help me i am in problem and its very urgent.I will be gratefull


Regards
Nandita

推荐答案

您好,我相信您遇到的问题是您正在尝试使用 .NET中的Word Interop ,但您没有安装MS Office。如果没有Office,您就无法使用自动化字,即使您拥有Office,也应该意识到 MS不建议自动化Microsoft Office应用程序服务器端



您可以在 OpenXML SDK ,但如果需要在C#中读取DOC文件然后你可以尝试这个 .NET Word dll可以涵盖两种文件格式(DOC和DOCX)。
Hi, I believe the issue you are facing is the fact that you are trying to use Word Interop in .NET, but you do not have an MS Office installed. Without an Office you cannot use a word automation and also even if you had Office you should realize that MS does not recommend automation of Microsoft Office applications on server side.

You can read your DOCX files in C# on server side with a help of OpenXML SDK, but if you require to read DOC files in C# then you can try this .NET Word dll which can cover both file formats (DOC and DOCX).


这篇关于如何在Web应用程序中读取doc和docx文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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