如何在JasperReports中绑定脚注 [英] How to bind footnotes in JasperReports

查看:80
本文介绍了如何在JasperReports中绑定脚注的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的文本字段具有动态位置.它有脚注,例如某些文本 1 ".此脚注位于页脚中.

Footenote必须与文本字段位于同一页面上. Textfield具有浮动位置,其位置取决于上面Textfields的动态大小.在不同条件下,该字段位于不同页面上

如何在一页中将TextField和脚注绑定在一起,例如文本字段在第3页上,脚注在同一页上?我可以使用$ V {PAGE_NUMBER},但是如何获取TextField的当前页面?

解决方案

我在textFiled Expression的末尾添加了$P{REPORT_PARAMETERS_MAP}.put("id_1",$V{PAGE_NUMBER})),并在页脚的textField的 PrintWhenExpression 中添加了$V{PAGE_NUMBER}.equals($P{REPORT_PARAMETERS_MAP}.get("id_1")). >

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?

解决方案

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

这篇关于如何在JasperReports中绑定脚注的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆