# JasperReports and HTML markup

**URL:** <https://forum.servoy.com/t/jasperreports-and-html-markup/15525>\
**Category:** Classic Servoy\
**Created:** [February 17, 2012, 10:41am UTC](https://forum.servoy.com/t/jasperreports-and-html-markup/15525 "2012-02-17T10:41:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jdbruijn](https://avatars.discourse-cdn.com/v4/letter/j/ed8c4c/32.png) [@jdbruijn](https://forum.servoy.com/u/jdbruijn)\
**Post date:** [February 17, 2012, 10:41am UTC](https://forum.servoy.com/t/jasperreports-and-html-markup/15525/1 "2012-02-17T10:41:46Z")

</div>

I’m trying to create a report to enable the user to print an email that is stored in our database.  
But I’m running into problems when the stored message body is from a HTML mail. It seems that JR is not able to correctly parse the HTML markup as I would like it.  
The text part of the markup works fine (bold/italic), but if the mail has any html table in the body then the result in JR is not looking anything like the original email.  
Searching the forums I found that indeed JR does not support the layout tags of HTML but only the text markup parts.

Does anyone have a suggestion on how I can create a good representation of the original HTML markup in the report?

---

<div class="post-metadata">

**Author:** ![tparry](https://avatars.discourse-cdn.com/v4/letter/t/ecccb3/32.png) [@tparry](https://forum.servoy.com/u/tparry)\
**Post date:** [February 17, 2012, 11:20am UTC](https://forum.servoy.com/t/jasperreports-and-html-markup/15525/2 "2012-02-17T11:20:57Z")

</div>

Switch to Velocity Reports?

---

<div class="post-metadata">

**Author:** ![patrick](https://avatars.discourse-cdn.com/v4/letter/p/b2d939/32.png) [@patrick](https://forum.servoy.com/u/patrick)\
**Post date:** [February 17, 2012, 2:36pm UTC](https://forum.servoy.com/t/jasperreports-and-html-markup/15525/3 "2012-02-17T14:36:43Z")

</div>

I have tried both and found no solution to this. The problem is that you have complex html with head, body, styles etc in such emails and I could never find a way to deal with that.
