Dynamic Style Setting

This recipe demonstrates how to work on dynamic style setting.

Steps taken:

  1. Create a report template (DynamicSytleSetting.rml) using the datasource (FruitSales.ds).
  2. Add a Data Field into the blank area under “Section Header”.
  3. 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)