tony-dfs Posted June 21 Share Posted June 21 Hi everyone,Someone may have an answer to my question, I inject HTML into a pdf report, tag attribute "style" in <h2> doesn't work.For example in this case <h2 style="color:blue">myText</h2> and the color is not applied... I replace this tag by a span and it works, idk why...I use <textElement markup="html"/> for the HTML, it works well for the layout, not for the font style, size, color, etc ... Link to comment Share on other sites More sharing options...
anish.rai Posted June 21 Share Posted June 21 Thank you for posting to the Jaspersoft Community. Our team of experts has read your question and we are working to get you an answer as quickly as we can. If you have a Jaspersoft Professional Subscription plan, please visit https://support.tibco.com/s/ for direct access to our technical support teams offering guaranteed response times. Link to comment Share on other sites More sharing options...
Solution Rutuja Shinde Posted June 21 Solution Share Posted June 21 Hi,we only support HTML tags related to text formatting (like <b>, <i> or <a>). We do not support tags for layout (like <hr>, <li> or <center>). Link to comment Share on other sites More sharing options...
tony-dfs Posted June 21 Author Share Posted June 21 Hi,Yeah, i saw that in the doc, but <b> and <i> doesn't work. <textElement markup="html"/><textFieldExpression><![CDATA[$V{myHtmlFile}]]></textFieldExpression> In this code, even if my variable "myHtmlFile" contains <b> tags, it doesn't apply to my text... Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now