如何在Jasper报告目录中获取背景图像以覆盖整个页面?

问题描述

我的Jasper报告的目录工作正常。但是我无法获得覆盖整个页面的背景图像,因为它不允许将背景标签的带高声明为整个页面高度(842 px)。 (pageHeader,detail和pageFooter标记中的其他文本元素也声明了其条带高度。)


<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"             xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd"
              name="TocReport" pageWidth="595" pageHeight="842" whenNoDataType="AllSectionsNoDetail"
              leftMargin="0" rightMargin="0" topMargin="0" bottomMargin="0" uuid="2d2696e4-c268-49e6-88d8-64a44e147b2c">

<background>
        <band height="610">
            <image>
                <reportElement x="0" y="0" width="595" height="610"  mode="Transparent" stretchType="ElementGroupHeight"/>
                <imageExpression class="java.io.InputStream"><![CDATA[$P{backgroundImage1}]]></imageExpression>
            </image>
        </band>
</background>

请帮助。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)