Dynamically change the background color of an object
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?
- You can try to use styles of iReport and apply some predefied style according to value of dynamically passed parameter.
- Before generating the report you can parse jrxml using some lighter language (Groovy, Ruby), find needed tag and correct value of appropriate property.
精彩评论