怎么读取word文档(包括表格、图片)并显示在aspx页中?如果图片不行 那就表格和文本吧

解决方案 »

  1.   

    直接设置ContentType为Word,前提是你的客户端要装了Word    protected void Page_Load(object sender, EventArgs e)
        {
            Response.ContentType = "application/msword";
            Response.WriteFile(Server.MapPath("aa.doc"));
        }
      

  2.   

    可以用asp调用word的导出功能,把word文档在线导成html然后进行查看或使用asp.net 2.0来实现,只要引入word组件就可以方便的操作word文档
      

  3.   

    public void Page_Load(object sender, EventArgs e)
        {
            Response.ContentType = "application/msword";
            Response.WriteFile(Server.MapPath("aa.doc"));
        }