如何在iReport中绘制垂直线? [英] How to draw vertical line in iReport?

查看:68
本文介绍了如何在iReport中绘制垂直线?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 iReport 3.5.2 ?设计报告.我有一个子报表,需要在其中创建一个表格.

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.

推荐答案

您可以根据需要将线设置为水平". 通过更改行的widthheight属性
例如

You can make your line Vertical of Horizontal as you like
By changing width and height properties of the line
For example

如果要绘制Vertical Line

<line>
    <reportElement x="0" y="0" width="1" height="30"/>
</line> 

如果要绘制Horizontal Line

<line>
    <reportElement x="0" y="0" width="30" height="1"/>
</line> 

这篇关于如何在iReport中绘制垂直线?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆