当前位置: 代码迷 >> ASP.NET >> 再发对于读取word内容到文本框
  详细解决方案

再发对于读取word内容到文本框

热度:8266   发布时间:2013-02-26 00:00:00.0
再发关于读取word内容到文本框
在前台页面有个文件上传控件file,通过浏览获得要导入的word文档,点击导入按钮,把word里的文本内容读到textBox多行文本框中,该怎么做呢?

------解决方案--------------------------------------------------------
StreamReader sr = new StreamReader(@ "c:\1.doc ", Encoding.UTF32, false, 9999);
string temp = sr.ReadToEnd();
sr.Close();
textBox1.Text = temp;

http://user.qzone.qq.com/31767702
  相关解决方案