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

HOW TO DESIGN JASPER REPORT COLUMN HEADER


pratikshahadimanip

Recommended Posts

I WANT MY COLUMN TO BE lIKE ONE FEILD 2 COLUMNS 

DescriptionamtORDERADDRESS 
ORDER 1ORDER 2ADDRESS 1ADDRESS 2 
         

 

HOW TO DESIGN THIS ? 

MANULLY ADDING STATIC TEXTING IS NOT HELPING IN FORMATTING 

IF DONE ALSO? HOW TO ADD LINE IN  BETWEEN DIFFERENT FIELDS IN DETAIL SECTION THAT IS FOR TEXTFEILD OR VARIBALE 

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

If you want a line in between fields add the line from palette with width=1. for horizontal line add height as 1

            <line>
                <reportElement x="200" y="37" width="350" height="1" uuid="57dd439a-3f24-4d64-b6d7-8a62593f0fab"/>
            </line>
            <line>
                <reportElement x="290" y="36" width="1" height="43" uuid="7b373f38-2cee-4480-9ae6-6dd2616ef8e2"/>
            </line>

the column header sample is

    <columnHeader>
        <band height="80" splitType="Stretch">
            <staticText>
                <reportElement x="0" y="37" width="100" height="30" uuid="1044ba14-0740-45fb-9267-e59fb7eed60d"/>
                <text><![CDATA[Description]]></text>
            </staticText>
            <staticText>
                <reportElement x="100" y="37" width="100" height="30" uuid="6885038e-431d-446d-8936-d49d8ee67073"/>
                <text><![CDATA[Amount]]></text>
            </staticText>
            <staticText>
                <reportElement x="200" y="0" width="180" height="30" uuid="adf73fda-22da-4dd5-8da5-e2d027f6d8ef"/>
                <textElement textAlignment="Center"/>
                <text><![CDATA[Order]]></text>
            </staticText>
            <line>
                <reportElement x="200" y="37" width="350" height="1" uuid="57dd439a-3f24-4d64-b6d7-8a62593f0fab"/>
            </line>
            <line>
                <reportElement x="290" y="36" width="1" height="43" uuid="7b373f38-2cee-4480-9ae6-6dd2616ef8e2"/>
            </line>
        </band>
    </columnHeader>

Hope this helps.

Link to comment
Share on other sites

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...