Response .Buffer =true ;
Response.Clear();
Response.AppendHeader("Content-disposition", "attachment; filename=失效分析单.doc" );
Response.ContentType = "application/vnd.ms-word";
Response.ContentEncoding = System.Text.Encoding.UTF8;
Response.Charset = "utf-8";
System.IO.StringWriter sw= new System.IO.StringWriter();
HtmlTextWriter htw = new HtmlTextWriter(sw);
Page.RenderControl(htw);
Response.Write(sw);
Response.Flush();
Response.Close();