asp.net 怎么读取word里面的内容到div里面显示在页面上,包括格式字体。最好不用组件。

解决方案 »

  1.   

    csdn中有的么,参见:http://blog.csdn.net/calizy/article/details/3178570
      

  2.   

    读出来比较简单了:
    private string ReadFile(string filePath)
    {
        string text = string.Empty;
        using (StreamReader sr = new StreamReader(filePath, Encoding.UTF8))
        {
            text = sr.ReadToEnd();
            sr.Close();
        }
        return text;
    }
      

  3.   

    百度 asp.net word导入导出