日期:2014-05-20  浏览次数:20480 次

再发关于读取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