如何用边框填充空格或在表格中添加空行 [英] How to fill blank space with border or add empty rows in table

查看:142
本文介绍了如何用边框填充空格或在表格中添加空行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想填写jasper报告中的空格或表格中的空行
我的报告是

I want to fill blank space in jasper report or empty rows in table my report is

我试过了

<box>
    <topPen lineWidth="2.0" lineStyle="Solid"/>
    <leftPen lineWidth="2.0" lineStyle="Solid"/>
    <rightPen lineWidth="2.0" lineStyle="Solid"/>
</box>

将水平线添加到细节带但不起作用。

to add horizontal line to detail band but its not working.

推荐答案

您可以使用背景波段来绘制所需的固定线。

You can use the background band, to draw the fixed lines you need.

<background>
    <band height="800">
        ... add lines you like to be in page background
    </band>
</background>

作为备注,可以移动 columnFooter 使用上的属性 isFloatColumnFooter =true jasperReport 标记下

As a note the columnFooter can be moved up under the table using the attribute isFloatColumnFooter="true" on the jasperReport tag

这篇关于如何用边框填充空格或在表格中添加空行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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