问题
I am using iReport 3.5.2? to design a report. I have a subreport where I need to have a table.
To build the table I have drawn horizontal lines for rows. However I am not finding any option to make the line vertical so that I can make the columns.
Could anyone please suggest how to do it.
回答1:
You can make your line Vertical of Horizontal as you like
By changing width
and height
properties of the line
For example
If you want to draw a Vertical Line
<line>
<reportElement x="0" y="0" width="1" height="30"/>
</line>
If you want to draw a Horizontal Line
<line>
<reportElement x="0" y="0" width="30" height="1"/>
</line>
回答2:
line is bad decision, may be problems on page ending/begining use
<style name="cell">
<box>
<pen lineWidth="1.0" lineStyle="Solid"/>
</box>
</style>
for your textField/staticText
回答3:
Select line properties.Set width=1 ,height=value greater than 1
来源:https://stackoverflow.com/questions/15333608/how-to-draw-vertical-line-in-ireport