Jump to content

How to set background color to entire page in iReport?


AISU

Recommended Posts

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Hai Aisu,

 

        add the below code in your jrxml file.

<background>

        <band height="842" splitType="Stretch">

            <staticText>

                <reportElement mode="Opaque" x="0" y="0" width="595" height="842" backcolor="#FFFF00"/>

                <textElement/>

                <text><![CDATA[]]></text>

            </staticText>

        </band>

    </background>

Link to comment
Share on other sites

Hi,

In iReport or JasperSoft Studio :

Add a background band to your report,

Resize the band to fit you reports dimensions

Add a Frame component in the background band (The previous answer uses a static text, which should also work, but the frame is a better fit)

Adapt the Frame's dimensions to its parent (the band)

Change the Frame background color.

Regards

Link to comment
Share on other sites

  • 4 weeks later...

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