【问题标题】:How to add page number option in footer with DynamicJasper API?如何使用 DynamicJasper API 在页脚中添加页码选项?
【发布时间】:2011-09-23 15:43:26
【问题描述】:

我正在借助代码创建报告:

FastReportBuilder fr = new FastReportBuilder();

我想在每个页面的页脚中添加页码。

page 1/3
page 2/3

【问题讨论】:

    标签: java jasper-reports dynamic-jasper


    【解决方案1】:

    作为documented in the HOW-TO 是这样的:

    FastReportBuilder fr = new FastReportBuilder();
    fr.addAutoText(
        AutoText.AUTOTEXT_PAGE_X_SLASH_Y,
        AutoText.POSITION_FOOTER,
        AutoText.ALIGNMENT_LEFT
    )
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-05-17
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多