如何在使用Pentaho报表引擎进行编码时在Subreport中使用ItemBand?Pentaho报表引擎 - 如何在Subreport中使用ItemBand
我定义我的ItemBand如下:
ItemBand rowBand = new ItemBand();
TextFieldElementFactory textFactory3 = new TextFieldElementFactory();
textFactory3.setFieldname("reportname");
Element element = textFactory3.createElement();
element.setDynamicContent(true);
rowBand.addElement(element);
itemBand2.addElement(rowBand);
现在我该怎样使用ItemBand在我的报表?