Jump to content
We've recently updated our Privacy Statement, available here ×

How to change Font size is dynamically or parameterized in jrxml(Ireport-4.5.0).


ganeshforurs

Recommended Posts

Hi ,

 

Please help me how to change font size parameterized  in jrxml reports.

 

I have finshed report using jrxml(iReport-4.5.0) but requirement is fileds and static text font size are change dynamically or parameterized.

 

i hava also tried conditional styles in my jrxml  like below

<style name="alternateStyle" forecolor="#FF0000" fontName="Arial">
        <conditionalStyle>
            <conditionExpression><![CDATA[new Boolean($V{countNumber}.intValue() % 1 == 0)]]></conditionExpression>
            <style fontSize="18" isBold="true"/>
        </conditionalStyle>
    </style>

<columnHeader>
        <band height="37" splitType="Stretch">
            <staticText>
                <reportElement style="alternateStyle" x="0" y="0" width="136" height="33"/>
                <textElement textAlignment="Center" verticalAlignment="Middle">
                    <font  isBold="true"/>
                </textElement>
                <text><![CDATA[Name]]></text>
            </staticText>
            <staticText>
                <reportElement style="alternateStyle" x="414" y="0" width="121" height="33"/>
                <textElement textAlignment="Center" verticalAlignment="Middle">
                    <font  isBold="true"/>
                </textElement>
                <text><![CDATA[Country]]></text>
            </staticText>
        </band>
    </columnHeader>

It is also not used to change font size. pleae help regarding this as soon as posible

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...