2011-05-05 70 views
0

我创建了一个模板文件使用iREPORT分享到人人4.0.2并设置代码模板文件:如何修改标题模板JRXML

drb.setTemplateFile("report1.jrxml");

但是,我不能设置当我做模板的标题这样的:

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

第二个问题,当我加入GlobalFooterVariable(columnSolde, DJCalculation.SUM),它的工作原理,但我有一个标签出现在左

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

你可以找到它的报告如何看待这个网址

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

回答

0

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

,并设置样式页脚文本:

footerStyle= new Style(); 
footerStyle.setHorizontalAlign(HorizontalAlign.RIGHT);