How to bind footnotes in JasperReports

2019-08-18 03:43发布

I have Textfields with dynamic position. It has footnotes, e.g. "some text1". And this footnotes are in the footer.

Footenote must be on the same page with textfield. Textfield has a float position and its location depends from dynamic size of Textfields above. With different conditions the field is located on different pages

How to bind TextField whith footnote in one page, e.g. Textfield is on the page number 3 and footnote on the same page? I can use $V{PAGE_NUMBER}, but how to get current page of TextField?

1条回答
兄弟一词,经得起流年.
2楼-- · 2019-08-18 04:28

I have added $P{REPORT_PARAMETERS_MAP}.put("id_1",$V{PAGE_NUMBER})) at the end of textFiled Expression and $V{PAGE_NUMBER}.equals($P{REPORT_PARAMETERS_MAP}.get("id_1")) in the PrintWhenExpression of textField in the footer

查看更多
登录 后发表回答