【问题标题】:Display image using ireport and oracle xe and apex使用 ireport 和 oracle xe 和 apex 显示图像
【发布时间】:2015-01-07 02:04:42
【问题描述】:

我正在使用 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 oracle ireport oracle-apex


    【解决方案1】:

    请尝试以下代码 sn-p:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-01-24
      • 2017-01-21
      • 1970-01-01
      相关资源
      最近更新 更多