Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adding page border in jasper report

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?

like image 897
Punky Avatar asked Feb 21 '23 13:02

Punky


1 Answers

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>
like image 85
lkdg Avatar answered Feb 23 '23 02:02

lkdg