How to stretch a text field relative to data width in Jasper Reports

前端 未结 2 2026
清酒与你
清酒与你 2020-12-19 11:01

I have a text field followed by a static text field and I am trying to do 2 things with it:

  1. Get the text field to stretch horizontally (not wrap) when text is
2条回答
  •  轮回少年
    2020-12-19 11:48

    Instead of having 2 text fields (dynamic and static), you can have 1 text field with value as $F{Field} + "statix text". This will probably fix your issue. Also, you can set the "width" and "stretch with overflow" properties, as per your requirements.

提交回复
热议问题