How to set Background color for Normal reports
Posted on November 30, 2015 at 9:01pm
I have created a Simple Jasper report using TIBCO Jaspersoft Studio Professional-6.1.0.final, Now I want to set a background color for it .
I have tried the following Properties but it didn't worked.
1) chart.backgroundColor.linearGradient
java.util.Arrays.asList(0,0,500,500)
2) chart.backgroundColor.stops
java.util.Arrays.asList
(
java.util.Arrays.asList(0,"#b5bdc8"),
java.util.Arrays.asList(0.36,"#828c95"),
java.util.Arrays.asList(1,"#28343b")
)
Could you help me what property I should use to set Background color for a Normal Jasper report.
Joined: Sep 9 2015 - 9:58am
Last seen: 1 year 10 months ago
Posted on November 30, 2015 at 9:08pm
You're trying to set background of a chart with those properties.
Just select the report and in the properties, select the background color and uncheck transparent.
Joined: Apr 24 2010 - 4:31pm
Last seen: 3 years 7 months ago
Posted on November 30, 2015 at 9:43pm
Ok I understand , If I select the background color and uncheck transparent , How am I supposed to get the same background color effect for my simple report . I think I will get single color as background If I follow your answer.
Joined: Sep 9 2015 - 9:58am
Last seen: 1 year 10 months ago
Posted on December 1, 2015 at 12:58am
Color "effect" is unsupported by JasperReports. You'll have to create an image file with the effect and read that image in as a background.
Joined: Apr 24 2010 - 4:31pm
Last seen: 3 years 7 months ago
Posted on December 2, 2015 at 10:11pm
So If I have an Image How to set that as a background for Whole report and How much that Image resolution should be?
Thanks.
Joined: Sep 9 2015 - 9:58am
Last seen: 1 year 10 months ago