Background 在Jasperreports中,如何在带有背景色的页面上设置边距?

Background 在Jasperreports中,如何在带有背景色的页面上设置边距?,background,jasper-reports,margin,Background,Jasper Reports,Margin,我正在使用JasperReports生成一个报告,my.jrxml的背景色如下所示 问题是我需要在页面上留一个边距,但边距显示为白色。我尝试过在背景中添加一个带有填充的框,但这不起作用,因为它是背景 <background> <band splitType="Stretch" height="842"> <staticText> <report

我正在使用JasperReports生成一个报告,my.jrxml的背景色如下所示

问题是我需要在页面上留一个边距,但边距显示为白色。我尝试过在背景中添加一个带有填充的框,但这不起作用,因为它是背景

<background>
        <band splitType="Stretch" height="842">
            <staticText>
                <reportElement mode="Opaque" x="0" y="0" width="595" height="842" backcolor="#DEEBF9" />
                <box topPadding="20" leftPadding="20" rightPadding="20">
                </box>
                <textElement/>
                <text><![CDATA[]]></text>
            </staticText>
        </band>
    </background>

请求编辑图片

当我试图创造右边的时候,我看到了左边。边距不包括背景色,因为我需要减小背景带的宽度。否则我会得到“边距和背景超出页面大小”异常。如何在页边距中添加颜色或创建某种填充,以影响除背景之外的整个页面?

由于您的问题是关于报告设计的,您能否提供一些您正在获得的结果和预期结果的图形表示。