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