DynamicReport 页码格式、分组失效

*

在使用dynamicreport发现的零散知识

 1,默认只有两种设置页码的格式,如果简单的进行自定义页面格式

cmp.pageXofY().setFormatExpression("第{0}页 / 共{1}页");

2,进行表格groupby的时候,发现没有达到效果,

查dynamicreport社区论坛才找到答案

TextColumnBuilder temp=col.column(tempbean.getParamCName(),tempbean.getParamName(),type.detectType(tempbean.getParamType()));
                    subreport.groupBy(temp);
                    subreport.sortBy(temp);//如果没有sortby,groupby not works fine

 

*

posted @ 2016-12-23 15:52  野鹤闲人  阅读(182)  评论(0编辑  收藏  举报