StringBuilder strHTMLContent = new StringBuilder();
strHTMLContent.Append("<style>.tableHeader{background-color:#CCCCCC;font-weight:bold; }.style1 { width: 100%;border-collapse:collapse;}.firstHeader { background-color: #3366CC; font-weight: bold;color: #FFFFFF;}</style>".ToString());
pageObject.Response.Clear();
pageObject.Response.AddHeader("content-disposition", "attachment; filename=FileName.doc");
pageObject.Response.Charset = "";
pageObject.Response.Cache.SetCacheability(HttpCacheability.NoCache);
pageObject.Response.ContentType = "application/doc";
StringWriter stringWrite = new StringWriter();
HtmlTextWriter htmlWrite = new HtmlTextWriter(stringWrite);
myDiv.RenderControl(htmlWrite);
pageObject.Response.Write(strHTMLContent.Append(stringWrite).ToString());
pageObject.Response.End();