How to draw vertical line in iReport?

爷,独闯天下 提交于 2021-02-18 05:07:11

问题


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

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