0

我用 ireport 4.0.2 创建了一个模板文件,并在代码中设置了模板文件:

drb.setTemplateFile("report1.jrxml");

但是,当我这样做时,我无法设置模板的标题:

drb.setTitle("Comptes du client")    //defines the title of the report
.setSubtitle("Détails Compte ")

第二个问题,当我添加一个时GlobalFooterVariable(columnSolde, DJCalculation.SUM),它可以工作,但我有一个标签“全球”出现在左边

我怎样才能解决这个问题 ?任何答案谢谢

您可以在此 url 上找到报告的外观

http://i.stack.imgur.com/6h0Vq.png

4

1 回答 1

0

drb.setGrandTotalLegend("Grand Total ") drb.setGrandTotalLegendStyle(footerStyle)

并将页脚文本的样式设置为:

footerStyle= new Style();
footerStyle.setHorizontalAlign(HorizontalAlign.RIGHT);
于 2011-08-08T06:09:27.107 回答