在jasper报告中添加页面边框 [英] Adding page border in jasper report

查看:552
本文介绍了在jasper报告中添加页面边框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经阅读了一些关于在jasper报告中添加页面边框的帖子,但是帮助很多。有人请详细告诉我如何添加页面边框?

I have gone through some posts regarding "adding page border in jasper reports" but dint help much. Someone please tell me in detail how to add page border?

推荐答案

我通过在报告中添加背景来达到此目的,例如:

I achieved this by adding a background to my reports like this for example:

<background>
    <band height="802" splitType="Stretch">
        <rectangle>
            <reportElement key="rectangle-2" x="0" y="76" width="535" height="726"/>
            <graphicElement>
                <pen lineWidth="0.5" lineStyle="Solid"/>
            </graphicElement>
        </rectangle>
    </band>
</background>

这篇关于在jasper报告中添加页面边框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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