0

Using the JFreeReport classic engine, I have:

<items height="10" fontname="SansSerif" fontstyle="plain" fontsize="8">
    <rectangle x="0" y="0" width="100%" height="10" dynamic="true" color="#CCCCCC" fill="false" draw="true" />
    <string-field x="2" y="0" width="100%" height="10" dynamic="true" fieldname="Workorder #"/>
</items>

Basically for the rectangle line, whether or not I put dynamic the height of the rectangle is 10 (the border around the text). So how can I make the rectangle the same height as the string-field?

Stephane Grenier
  • 15,527
  • 38
  • 117
  • 192

3 Answers3

1

It is not possible to dynamically set the height of a line item with a border around it.

Stephane Grenier
  • 15,527
  • 38
  • 117
  • 192
0

if you remove the attribute height="10" from the Rectangle, you will get what you are expecting.

David Kroukamp
  • 36,155
  • 13
  • 81
  • 138
0

I hate to ask the obvious, have you tried height="100%" instead of height="10"?

Jim
  • 1,161
  • 9
  • 21