开发者

Dynamically change the background color of an object

开发者 https://www.devze.com 2022-12-22 11:49 出处:网络
开发者_JAVA百科I am using iReports for generating the PDF form. The requirement is to dynamically set jrxml object backgroundcolor.
开发者_JAVA百科

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?


  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.
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号