Jasper generated HTML and other formats looks differently.

I had a new requirement where I had to insert a 9x4  table in the design. 

While genrating the pdf and xlsx formats the report looks fine with the table. But when the html report is downloaded, I get the table distorted with some column width more and some less.
I tried multiple thigs to fix even reduced the size (with 6x6) of table. Still no luck.

The table looks something like this with fixed width. and for html the width varies not sure why its not consistent.

                 
                 
                 
                 

Is this a jasper limitation? If so any alternative way to fix this? 
Any help would be highly appreciated.

prashanthkk798's picture
Joined: Mar 23 2023 - 3:38am
Last seen: 2 months 5 days ago

2 Answers:

HTML supported
https://jasperreports.sourceforge.net/sample.reference/styledtext/index....
    <b>
    <u>
    <i>
    <font>
    <sup>
    <sub>
    <li>
    <br>

eduardo_rhamos's picture
Joined: Oct 18 2017 - 5:41pm
Last seen: 1 month 2 weeks ago

Hi  eduardo_rhamos,

Thanks for the answer but the solution you provided was for formatting the text in a html format but in my case I need to format the table spacing please let me know if you got any solution.

prashanthkk798's picture
Joined: Mar 23 2023 - 3:38am
Last seen: 2 months 5 days ago
Feedback
randomness