Adding a Page Border to a Jasper Report

I read some posts regarding "adding page borders in jasper posts", but helps a lot. Someone please tell me how to add a page border?

+3
source share
1 answer

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>
+6
source

All Articles