ioniyer Posted November 24, 2008 Share Posted November 24, 2008 Hi All,We are using jasper reports 3.0.0.The pdf content has text of which one word in the whole text has to be bold.I have set the markup = html and suffix and prefix the word that I want to appear in bold with <b> somestring </b> but it seems to have no effect.Can you please let me know how to achieve this using jasper 3.0.0Also, isn't the isStyledText deprecated in jasper 3.0 Regards,Mani Link to comment Share on other sites More sharing options...
stever Posted January 15, 2009 Share Posted January 15, 2009 "Me too" - We have had exactly the same issue. Jasper seems to correctly convert the text to styled format in its 'raw' store, then ignores this during pdf output.I solved it by abandoning html, turning on isStyledText and using " <style pdfFontName="helvetica-bold" isBold="true">bold text</style> " within the text (or whatever the bold version of your font is called). Post Edited by Steve Rendell at 01/15/09 13:26 Link to comment Share on other sites More sharing options...
neshaug Posted January 21, 2009 Share Posted January 21, 2009 To define it in jrxml you can do this.<textElement verticalAlignment="Middle"> <font size="11" isBold="true" pdfFontName="Helvetica-Bold"/></textElement> Link to comment Share on other sites More sharing options...
C-Box Posted January 22, 2009 Share Posted January 22, 2009 This is not feasible as for bold PDF output the whole text would be bold and not just the one enclosed within the <b> tag.So you should convert your html tags to original JasperStyleTags and use the PDF Font tag for that: <style isBold="true" isItalic="true" isUnderline="true" pdfFontName="Helvetica-BoldOblique"> hthC-Box 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