Jasper Reports Show “Page X of Y” using a single text field

前端 未结 8 1364
無奈伤痛
無奈伤痛 2020-11-28 10:20

I would like to create one text field that contains Page X of Y, without splitting it in two parts, as per the common solution. My textfield contains \"Pa

8条回答
  •  隐瞒了意图╮
    2020-11-28 11:03

    Regarding the current page number, evaluationTime=now and $V{PAGE_NUMBER} is your answer.

    Unfortunately I don't think you can achieve what you want because there is a bug in PAGE_COUNT when Split Allowed is on for the Detail band. Otherwise evaluationTime=now and "Page " + $V{PAGE_NUMBER} + " of " + $V{PAGE_COUNT}" would probably work.

提交回复
热议问题