How to set Background color for Normal reports

0

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.

santosh.audi19's picture
Joined: Sep 9 2015 - 9:58am
Last seen: 10 months 4 days ago

4 Answers:

0

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.

hozawa's picture
78152
Joined: Apr 24 2010 - 4:31pm
Last seen: 2 years 7 months ago
0

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.

 

 

santosh.audi19's picture
Joined: Sep 9 2015 - 9:58am
Last seen: 10 months 4 days ago
0

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.

hozawa's picture
78152
Joined: Apr 24 2010 - 4:31pm
Last seen: 2 years 7 months ago
0

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.

 

santosh.audi19's picture
Joined: Sep 9 2015 - 9:58am
Last seen: 10 months 4 days ago
Feedback