【发布时间】:2012-02-06 22:16:43
【问题描述】:
我正在使用 jasper 报告创建 pdf 文档。我在主文档中使用了一个子报表。此子报表由 3 个文本字段和一行组成。我使用 javabean 数据源来填充值。如果数据源返回空值,现在我看不到行。谁能指导我如何解决这个问题。
您可以在下面看到我在 jrxml 中用于绘制线条的 xml 代码 文件:
<line direction="TopDown">
<reportElement mode="Transparent" x="-6" y="17" width="480" height="0"
forecolor="#C6C8CA" key="line-1" isPrintInFirstWholeBand="true"/>
<graphicElement stretchType="NoStretch">
<pen lineWidth="0.25" lineStyle="Solid"/>
</graphicElement>
</line>
【问题讨论】:
标签: jasper-reports