我使用的是 iReport 3.5.2?设计一份报告。我有一个子报告,我需要一张表格。
为了构建表格,我为行绘制了水平线。但是,我没有找到任何使线条垂直的选项,以便我可以制作列。
任何人都可以请建议如何做到这一点。
最佳答案
您可以根据需要使线条垂直或水平
通过更改 width
和 height
线的属性
例如
如果你想画一个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>
关于jasper-reports - 如何在 iReport 中绘制垂直线?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15333608/