c# 生成word 文档。
string ss = o.ToString();
Response.Expires = 0;
Response.Buffer = true;
Response.Clear();
Response.ClearHeaders();
Response.ClearContent();
Response.AddHeader("Content-disposition", "attachment; filename=1.doc");
Response.ContentType = "application/vnd.ms-word";
Response.Write("<html><head>");
Response.Write("<title></title></head><body>");
Response.Write(ss);
Response.Write("</body></html>");
Response.Flush();
Response.End();
Response.Expires = 0;
Response.Buffer = true;
Response.Clear();
Response.ClearHeaders();
Response.ClearContent();
Response.AddHeader("Content-disposition", "attachment; filename=1.doc");
Response.ContentType = "application/vnd.ms-word";
Response.Write("<html><head>");
Response.Write("<title></title></head><body>");
Response.Write(ss);
Response.Write("</body></html>");
Response.Flush();
Response.End();
继续追寻。。。。。。