yo1832 Posted March 9, 2009 Share Posted March 9, 2009 i have a string with concatnew string("hello").concat($P{home}).concat("be happy");i wan put $P{home} in bold, and "hello" and "be happy" in normalhow can i make this.Post Edited by Yo mismo at 03/10/09 11:06 Link to comment Share on other sites More sharing options...
hangman01 Posted March 9, 2009 Share Posted March 9, 2009 You need to use styles in the text field. There have been some earlier posts that go into some detail about using styles. I would suggest looking at those posts first and see if they help you figure out how to do this. Link to comment Share on other sites More sharing options...
yo1832 Posted March 10, 2009 Author Share Posted March 10, 2009 Go textfiled propertyes-> font tabOption: is style text: check this Option: markup select htmlnew String("<style isBold='true' pdfFontName='Helvetica-Bold'>").concat($F{organizacion.descripcion}).concat("</style>.-").concat($F{entrad})this is bold for helvetica. For PDF. Link to comment Share on other sites More sharing options...
Solution jonathan.bergeron.2 Posted May 13, 2021 Solution Share Posted May 13, 2021 If it can be of any help to future readers, if nothing works, check if the font you're using is "boldable". I just spent two days figuring this... 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