Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to draw vertical line in iReport?

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.

like image 997
JavaYouth Avatar asked Mar 11 '13 07:03

JavaYouth


2 Answers

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> 
like image 117
ahmednabil88 Avatar answered Oct 12 '22 23:10

ahmednabil88


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

like image 29
Alexandr83 Avatar answered Oct 13 '22 00:10

Alexandr83