tinti Posted July 12, 2010 Share Posted July 12, 2010 I have a band that iterates over the records of a particular table.The report should print the value of a table field, for example, the user name.The user name field of the table, can bring value containing the following: #BOLD#Sample1#ITALIC#Sample2#UNDERLINE#Sample3 According to the value that comes from the field, should I format the text on the label in a different way.For that I need to change the formatting of the label in each iteration of the band. Is it possible? Link to comment Share on other sites More sharing options...
lacito Posted July 13, 2010 Share Posted July 13, 2010 Not the best solution but I think it works... Use three fields (f1, f2, f3) on the same place (coordinates).f1 has #BOLD# stylef2 has #ITALIC# stylef3 has #UNDERLINE# styleSet the printWhenExpression of each fields.There is a sampe on jasperforge.org:http://jasperforge.org//uploads/publish/jasperreportswebsite/trunk/samples/FirstJasper.jrxmlhttp://jasperforge.org//uploads/publish/jasperreportswebsite/trunk/samples/FirstJasper.pdfSearch for the printWhenExpression element int the jrxml file. I hope it helps...Laszlo Link to comment Share on other sites More sharing options...
lucianc Posted July 16, 2010 Share Posted July 16, 2010 You can also use conditional styles or styled text. In either case, you'd need to do some processing on the text to extract the style information from the text.Regards,Lucian 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