We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Html data in database to word

Data is saved in the database with htnl tags. But when i get the data it should be displayed in word without the tags.

  • suren
  • it comes as it if I show in word but it must not be the case.The style must be applied and i must get the data exaclty as it is in word. without

  • tags. I dont have any controls on the page as my funcionality is to just pick data from database and display in a word format.
    This message was posted using Aspose.Live 2 Forum
  • Hello

    <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

    Thanks for your request. I think, in your case you should read your HTML from data base as string and insert this string into the document:

    Document doc = new Document();

    DocumentBuilder builder = new DocumentBuilder(doc);

    string html = File.ReadAllText("yourHTML.html");


    //Save output document


    Hope this helps.

    Best regards,