Two days ago, I had a problem with my report. My user wanted to change the value of a field. For example : "I'm going to go to Jakarta"
I must change the word "go" like this " go " ( "font italic") , i have a solution like this :
- Set <textElement markup="html"/> of your textField
- Right click your textField and edit expression set syntax as $F{WORDS_SAMPLE}.replace( "go", "<i>"+"go"+"</i>" )
- Run your reports, and you can see word of go as italic font.
thanks, regards muzy.
Recommended Comments