Is there a way to print additional text to a textfield when detail is overflowed

放肆的年华 提交于 2020-01-05 04:56:31

问题


I was wondering if anyone can think of a way add additional text to a detail when it is printed again in due to overflow.

For example, if a textfield has isPrintWhenDetailOverflows="true" set, and is printed again on the a second column, is there any variable that can be accessed that would determine if overflow has been set.

An example might look like

<textFieldExpression><![CDATA[$F{SOME_FIELD} + ($V{OVERFLOW_COUNT} > 0)?" (Continued)":""]]></textFieldExpression>

And would append '(Continued)' to the field if it is printed multiple times.

Is this functionality possible within JasperReports?

来源:https://stackoverflow.com/questions/44853464/is-there-a-way-to-print-additional-text-to-a-textfield-when-detail-is-overflowed

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!