开发者

Dynamically change the background color of an object

开发者_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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜