AISU Posted March 19, 2014 Share Posted March 19, 2014 I am using iReport . I want to set background color to entire page.I didn't found any report property for background color. Can anyone help me in this? Link to comment Share on other sites More sharing options...
sruthyms Posted March 19, 2014 Share Posted March 19, 2014 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 More sharing options...
AISU Posted March 19, 2014 Author Share Posted March 19, 2014 Hai Sruthy.. Thank u so much..its working Link to comment Share on other sites More sharing options...
fcerbell Posted March 19, 2014 Share Posted March 19, 2014 Hi,In iReport or JasperSoft Studio :Add a background band to your report,Resize the band to fit you reports dimensionsAdd 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 More sharing options...
sruthyms Posted April 17, 2014 Share Posted April 17, 2014 Thank u Mr.fcerbell Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now