如何在c#中使用asp.net将word文件读入richtextbox [英] how to read word file into richtextbox using asp.net in c#

查看:109
本文介绍了如何在c#中使用asp.net将word文件读入richtextbox的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



如何在c语言中使用asp.net将word文件读入richtextbox或文本框中#



问候,

VenkateshDesai。

Hi All,

how to read word file into richtextbox or in textbox using asp.net in c#

Regards,
VenkateshDesai.

推荐答案

以下链接适用于Windows应用程序,看看是否可以用于Web应用程序:

使用C#读取MS字词 [ ^ ]
Below link works for windows application, see if you can use for web application:
Read MS word using C#[^]


你不会。



TextBox控件只是一个普通的HTML TextBox,对Word文档一无所知,因此无法显示它们。



ASP.NET没有RichTextBox控件,即使它有,它也有与TextBox相同的问题。它不会知道Word文档的格式。



现在,我不是说这是不可能的。您必须使用第三方控件来显示Word文档。大多数人都不支持Word所以你必须做一些研究并找到一个。
You don''t.

The TextBox control is just a normal HTML TextBox and doesn''t know anything about Word documents so it can''t display them.

ASP.NET doesn''t have a RichTextBox control and even if it did, it has the same problem as the TextBox. It wouldn''t know about the Word document format.

Now, I''m not saying it''s impossible. You would have to use a 3rd party control to display the Word document. Most don''t support Word so you''ll have to do some research and find one that does.


尝试使用第三方控件,如Telerik或DevExpress
Try Using 3rd Party Controls like Telerik or DevExpress

这篇关于如何在c#中使用asp.net将word文件读入richtextbox的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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