如果要向报告添加页码,则需要将此行添加到报告对象
try {
report()//create new report design
.columns(...) //adds columns
.pageFooter(cmp.pageXofY()) //shows number of page at page footer
.show() //shows report
.print() //prints report
...
} catch (DRException e) {
e.printStackTrace();
}