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?