Image 使用ireport、oracle xe和apex显示图像

Image 使用ireport、oracle xe和apex显示图像,image,oracle,ireport,oracle-apex,Image,Oracle,Ireport,Oracle Apex,我正在使用ireport 5.1构建报告,现在我尝试在pdf报告中显示图像,但它没有显示 我将jpg文件复制到jasper目录,在那里我有我的ireport编译文件(jrxml), 我在报告中引用的jpg文件如下: XML代码: <image> <reportElement uuid="generated_uuid" x="2" y="4" width="119" height="50"/> <imag

我正在使用ireport 5.1构建报告,现在我尝试在pdf报告中显示图像,但它没有显示

我将jpg文件复制到jasper目录,在那里我有我的ireport编译文件(jrxml), 我在报告中引用的jpg文件如下:

XML代码:

        <image>
            <reportElement uuid="generated_uuid" x="2" y="4" width="119" height="50"/>
            <imageExpression><![CDATA["logovinhedo.jpg"]]></imageExpression>
        </image>


但它不起作用

请尝试以下代码片段:

  • 将完整图像路径存储在参数
    image\u path
  • 应用参数而不是图像文件名
  • 
    !CDATA[$P{IMAGE\u PATH}]>
    
    <image>
        <reportElement x="2" y="4" width="119" height="50" />
        <imageExpression class="java.lang.String">!CDATA[$P{IMAGE_PATH}]]> </imageExpression>
    </image>