【问题标题】:How to stretch the subreport to band height?如何将子报表拉伸到带高?
【发布时间】:2023-04-10 16:08:01
【问题描述】:

我有一个带有子报表的报表,我无法将子报表拉伸到带高,请帮助我! 如您在下面看到的(示例),子报表不会拉伸到带高(示例)

jrxml 文件:https://pastebin.com/BF2nfjBu

           <subreport>
            <reportElement stretchType="RelativeToBandHeight" x="460" y="0" width="340" height="16" isPrintWhenDetailOverflows="true" uuid="c5783955-245e-4d93-938c-57ed43e2e3a5"/>
            <dataSourceExpression><![CDATA[$F{form21_subreport}]]></dataSourceExpression>
            <subreportExpression><![CDATA[$P{sub_report_names}.get("form21_techreq_subreport")]]></subreportExpression>
        </subreport>

【问题讨论】:

  • 你能把数据文件和subreport jrxml一起发布吗?以及使用的 Jasper 工作室和服务器版本是什么?

标签: jasper-reports subreport


【解决方案1】:
<subreport>
    <reportElement stretchType="ContainerHeight" ...

RelativeToBandHeight 已弃用,可能正在被使用中的 jasper 库忽略。

【讨论】:

  • 它对我不起作用。看起来子报表不知道如何拉伸......
猜你喜欢
  • 1970-01-01
  • 2013-11-11
  • 1970-01-01
  • 2019-09-16
  • 1970-01-01
  • 2015-11-28
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多