Jasper reports i报告页眉图像问题
我正在使用iReport 3.0.0,目前正在尝试用另一个页面标题替换页面标题中的图像,但问题是新图像不适合Jasper reports i报告页眉图像问题,jasper-reports,Jasper Reports,我正在使用iReport 3.0.0,目前正在尝试用另一个页面标题替换页面标题中的图像,但问题是新图像不适合 波段高度为100 旧图像是png格式,217x132,它位于图像元素width=“190”height=“70”内部(这很好) 新图像为png格式,192 x 130,位于图像元素宽度=“103”高度=“100”内 问题是对于新图像,底部有一小部分图像没有显示,我将高度从70更改为100,仍然是相同的问题 有什么建议吗 旧代码是 <pageHeader>
<pageHeader>
<band height="100" isSplitAllowed="true" >
<image evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" >
<reportElement x="0" y="12" width="190" height="70" key="image-2"/>
<box></box>
<graphicElement stretchType="NoStretch"/>
<imageExpression class="java.lang.String"><![CDATA[$P{REPORT_BASE_DIR}+"Old_logo.png"]]></imageExpression>
</image>
</band>
</pageHeader>
新代码是
<pageHeader>
<band height="100" isSplitAllowed="true" >
<image evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" >
<reportElement x="379" y="0" width="103" height="100" key="image-2"/>
<box></box>
<graphicElement stretchType="NoStretch"/>
<imageExpression class="java.lang.String"><![CDATA[$P{REPORT_BASE_DIR}+"New_Logo.png"]]></imageExpression>
</image>
我做错了什么???你的ireport版本是什么 我尝试了IDE提供的示例: 例1:
例2:
我想是你的
标签或与本例不同的东西
<image>
<reportElement x="2" y="0" width="118" height="132"/>
<imageExpression><![CDATA["tree1.png"]]></imageExpression>
</image>
<image>
<reportElement x="275" y="0" width="300" height="64"/>
<imageExpression><![CDATA["leaf_banner_red.png"]]></imageExpression>
</image>