pramudya81 Posted June 7, 2010 Share Posted June 7, 2010 Hi,I am using iReport 3.7.3And I am facing exact problem as I found on http://jasperforge.org/plugins/espforum/view.php?group_id=83&forumid=101&topicid=50134But I can not see the continuation of that thread. So I ask again in this forum.I have text expression with value"<style isBold='true' fontSize='10'>Card No : " + $P{P_CARD_NO} + "</style>"I could see the expected result on iReport but If I call it from JSP the text is in plain format. No bold. No bigger font size as 10 defined.What's missing here? Thanks Link to comment Share on other sites More sharing options...
purushotham Posted June 8, 2010 Share Posted June 8, 2010 Hi, The attributes whatever you are using under Style tag are incorrect. I don't know the actual reason behind that. But I also had the same problem and fixed myself.There is no attribute called 'fontSize'. It should be 'size' only. I don't know the working attribute name for 'isBold'. Purushotham Reddy,Software Developer Link to comment Share on other sites More sharing options...
pramudya81 Posted June 9, 2010 Author Share Posted June 9, 2010 Geez...That's it. It works now...Thanks dudeReally unbelievable solution. So simple and I feel stupid. Link to comment Share on other sites More sharing options...
mtassinari Posted June 16, 2010 Share Posted June 16, 2010 How did you solve the problem? As far as I know, "isBold" and "fontSize" where the proper attribute names! O.oalso, I've noticed that using simple html like "<b>TEXT</b>" doesn't seems to work anymore, not in the preview nor in the actual printed report. I've tried to set the markup to both "styled" and "html", but if I remember correctly, the "styled" option used to include the html part...any help anyone? EDIT: I don't really know about "fontSize", but I'm SURE I've used "isBold" plenty of times before, together with the html tags...Post Edited by mtassinari at 06/16/2010 14:16 Link to comment Share on other sites More sharing options...
pramudya81 Posted June 17, 2010 Author Share Posted June 17, 2010 isBold is the correct syntax....but for the font size it is not fontSize but size.<style size='10'>blablabla</style> Link to comment Share on other sites More sharing options...
pureself Posted September 13, 2013 Share Posted September 13, 2013 Here is a workaround to have a bold style :<style isBold="true" pdfFontName="Helvetica-Bold">your text</style> 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