pátek 15. ledna 2010

iReport 3.7.0 - add conditional style mini tutorial

It took me some time to discover how to add a conditional style to a report. As I was not able to find any tutorial covering this topic here it is.

Add a style to the report (Windows->Style Library) Right click to Add a new style. Style properties can be modified in the property window. Right click on the style in Style Library to Add style to report. Once added the style is displayed in the Report Inspector window. And there we are. Right clicking the style in the Style Inspector window an option to add a condition to the style is possible. Once added an expression can be edited. Each condition can have its own set of attributes.