Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
HTML inside a data column in PDF report
maymay
Hi,
Good day to everyone.
I am trying to generate a pdf report with html tags inside one of the column.
This data is retrieved from a resultset from the handler (java).
The style does not show up when I view the report as pdf.
Here is a sample of the data inside the column.
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
<style type="text/css">
#style_1 {font-family: Arial; font-size: 12; font-weight: bold; }
#style_2 {font-family: Arial; font-size: 12; }
#style_3 {font-family: Arial; font-size: 12; color:rgb(255,0,128); }
#style_4 {font-family: Arial; font-size: 12; font-weight: bold; font-style: italic; text-decoration: underline; color:rgb(255,0,128); }
#style_5 {font-family: Arial; font-size: 12; font-weight: bold; font-style: italic; color:rgb(255,0,128); }
#style_6 {font-family: Arial; font-size: 12; font-weight: bold; }
</style>
</head>
<body>
<div style="text-align: left;">
<span id="style_1">- Some text</span>
<span id="style_2"><br/>- Some text<br/></span>
<span id="style_3">Herkunft: Keule<br/></span>
<span id="style_4">aaaa</span>
<span id="style_5"><br/></span>
<span id="style_6">aaaaa: aaaaa<br/><br/><br/><br/></span>
</div>
</body>
</html>
This is displayed in the pdf report with the tags removed but the styles were not applied.
Is it possible for the style to be applied in the pdf report? Does anyone know how to do this?
Thank you very much.
Find more posts tagged with
Comments
kclark
<a class='bbc_url' href='
http://www.birt-exchange.org/org/forum/index.php/topic/10556-how-to-render-html-tables-to-pdf/'>Take
a look at this thread</a> it may be the same issue you're having. In that post he was creating an html table which worked but the styles were not being applied, the fix for this was using css/inline styles. Let me know if that helps at all.
maymay
<blockquote class='ipsBlockquote' data-author="'kclark'" data-cid="111601" data-time="1353077767" data-date="16 November 2012 - 07:56 AM"><p>
<a class='bbc_url' href='
http://www.birt-exchange.org/org/forum/index.php/topic/10556-how-to-render-html-tables-to-pdf/'>Take
a look at this thread</a> it may be the same issue you're having. In that post he was creating an html table which worked but the styles were not being applied, the fix for this was using css/inline styles. Let me know if that helps at all.<br /></p></blockquote>
<br />
Hi,<br />
Good day.<br />
I haven't had time to checkout this post.<br />
I also did the same thing and it worked.
<br />
Thanks for the response.