locked
Word documennt RRS feed

  • Question

  • User582566331 posted

    Helo ,

     

    I  have to create  and save a word document(report) from asp.net.we have the string in html format.but while writing this text to word,the tags are also displaying.I want to remove this tags and diplay in a neat format.ie,<b>hello</b> should display in bold.  

     

    Thanks

     

    sweety

    Saturday, February 14, 2009 1:28 AM

Answers

  • User-2008897719 posted

    I am not sure if u're expecting the formatting to be preserved or not. If u just dont want the tags to be present, write a RegExp that removes all the tags and gives u only the plain text.
    And if u need the formatting, save the html content in a file and rename it to a doc file and while downloading, set the response header to application/msword


    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Sunday, February 15, 2009 12:50 PM

All replies

  • User-507673006 posted

    Use a HTML editor?

    FCKeditor

    Saturday, February 14, 2009 3:42 AM
  • User-2008897719 posted

    I am not sure if u're expecting the formatting to be preserved or not. If u just dont want the tags to be present, write a RegExp that removes all the tags and gives u only the plain text.
    And if u need the formatting, save the html content in a file and rename it to a doc file and while downloading, set the response header to application/msword


    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Sunday, February 15, 2009 12:50 PM