views:

155

answers:

1

I am using iReports for generating the PDF form. The requirement is to dynamically set jrxml object backgroundcolor.

I tried to pass the color from java to jrxml. IT didn't work. Any other ideas?

A: 
  1. You can try to use styles of iReport and apply some predefied style according to value of dynamically passed parameter.
  2. Before generating the report you can parse jrxml using some lighter language (Groovy, Ruby), find needed tag and correct value of appropriate property.
mavirroco