Posted on: 8/8/2013 4:41:43 AM | Views : 235

hi all,
I am creating a word document dynamically using c#. it done using,
StringBuilder strbulider = new StringBuilder(); string strBody = string.Empty; strBody = @"<html xmlns:o='urn:schemas-microsoft-com:office:office' " + "xmlns:w='urn:schemas-microsoft-com:office:word'" + "xmlns='http://www.w3.org/TR/REC-html40'>";
strBody = strBody + "<!--[if gte mso 9]>" + "<xml>" + "<w:WordDocument>" + "<w:View>Print</w:View>" + "<w:Zoom>100</w:Zoom>" + "</w:WordDocument>" + "</xml>" + "<![endif]-->"; strbulider.Append("<html><head>"+strBody+"</head><body> Content </body></html>");
string strPath = Server.MapPath("~/doc ...

Go to the complete details ...