Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/google-cloud-platform/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Jasper reports 如何忽略模板中的页边距:使用图像_Jasper Reports - Fatal编程技术网

Jasper reports 如何忽略模板中的页边距:使用图像

Jasper reports 如何忽略模板中的页边距:使用图像,jasper-reports,Jasper Reports,我有JasperReports模板和 leftMargin="100" rightMargin="50" topMargin="50" bottomMargin="50" 利润。在这个模板中,我有元素。我想将图像拉伸到整个页面,忽略页面边距 请问,你能帮我找到解决办法吗 您不能忽略按钮边距,但可以使用负数位置忽略其他边距。(请注意,iReport不允许您在设计模式下输入) 您不能忽略底部页边距的原因是您不能将波段扩展到超过页面高度-(顶部页边距+底部页边距)。每个元素的高度不可能大于波段高

我有JasperReports模板和

leftMargin="100" rightMargin="50" topMargin="50" bottomMargin="50"
利润。在这个模板中,我有
元素。我想将图像拉伸到整个页面,忽略页面边距

请问,你能帮我找到解决办法吗


您不能忽略
按钮
边距,但可以使用负数位置忽略其他边距。(请注意,iReport不允许您在设计模式下输入)



您不能忽略
底部
页边距的原因是您不能将
波段
扩展到超过
页面高度-(顶部页边距+底部页边距)
。每个元素的
高度不可能大于
波段高度-位置

看起来您没有很好地定义图像元素。 这里有一个例子,你可以得到你想要的任何东西

<summary>
    <band height="471" splitType="Stretch">
        <image scaleImage="FillFrame">
            <reportElement uuid="45a2de1b-a048-4c65-b5cd-cefabdd39bca" x="0" y="0" width="555" height="471"/>
            <imageExpression><![CDATA["/path/to/your/image"]]></imageExpression>
        </image>
    </band>
</summary>


希望它能帮助你。享受。

什么是利润?
<summary>
    <band height="471" splitType="Stretch">
        <image scaleImage="FillFrame">
            <reportElement uuid="45a2de1b-a048-4c65-b5cd-cefabdd39bca" x="0" y="0" width="555" height="471"/>
            <imageExpression><![CDATA["/path/to/your/image"]]></imageExpression>
        </image>
    </band>
</summary>