This recipe demonstrates how to work on dynamic style setting.
Steps taken:
- Create a report template (DynamicSytleSetting.rml) using the datasource (FruitSales.ds).
- Add a Data Field into the blank area under “Section Header”.
- Enter the following script into “Field Properties > Scripts > On Render Begin”:this.setStyleName(getStyleItem(“Style 1”));
To download the necessary files for this recipe, refer to the attached ZIP file.
DynamicStyleSetting.zip (3.0 KB)