Jump to content
  • Set italic font when condition of one textField


    muzymuhammad
    • Features: Input Controls, Parameters Version: v5.1 Product: iReport Designer

    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 :

    1. Set  <textElement markup="html"/> of your textField
    2. Right click your textField and edit expression set syntax as $F{WORDS_SAMPLE}.replace( "go", "<i>"+"go"+"</i>" )
    3. Run your reports, and you can see word of go as italic font.

    thanks, regards muzy.


    User Feedback

    Recommended Comments



    Guest
    This is now closed for further comments

×
×
  • Create New...