Posted on: 6/10/2014 8:43:21 PM | Views : 363

Hi All,
I am trying to convert an HTMl web page to MS word document. The whole page is converted with the code, but formatting of the numbers is lost so on my web page if I have a comma in the number then i don't see that comma or a dollar sign so for e.g I am displaying
$185,300.00
$20,000.00
on my web page inside the gridview. when I convert it to MS word, I get 185300.00 and 20000. Below is my code to convert to MS word document:
HttpContext.Current.Response.Clear() HttpContext.Current.Response.ClearHeaders() HttpContext.Current.Response.ClearContent() HttpContext.Current.Response.AddHeader("content-disposition", "attachment;filename=ARMReport.doc") HttpContext.Current.Response.ContentType = "application/msword" Response.Flush() The code is converting to Ms word document fine except this formatting. I wa ...

Go to the complete details ...