没有人?你试一试就知道了。结果肯定一样。

解决方案 »

  1.   

    居然没有一个人能解决这个问题?
      

  2.   

    没试  有IE直接打开word有点慢  我直接保存为word格式 在客户端 private void ToWORD(System.Web.UI.Control ctl) 

    Response.Charset="GB2312"; 
    Response.AppendHeader("Content-Disposition","attachment;filename=myWord.doc");  
    Response.ContentEncoding = System.Text.Encoding.UTF8;
    Response.ContentType = "application/ms-word"; ctl.Page.EnableViewState = false; 
    System.IO.StringWriter tw = new System.IO.StringWriter(); 
    System.Web.UI.HtmlTextWriter hw = new HtmlTextWriter(tw);  ctl.RenderControl(hw);  Response.Write(tw.ToString()); 
    Response.End(); 
    }
    private void bt_Click(object sender, System.EventArgs e)
    {
      ToWORD(FloorDatalist);
    }