Jasper reports IReport:详细信息栏不会溢出到下一页
我在一个细节栏中有两个文本字段。下面是band XML代码:Jasper reports IReport:详细信息栏不会溢出到下一页,jasper-reports,Jasper Reports,我在一个细节栏中有两个文本字段。下面是band XML代码: <band height="40" splitType="Prevent"> <textField isStretchWithOverflow="true"> <reportElement positionType="Float" stretchType="RelativeToBandHeight" x="0" y="20" width="100" height="20" isPrin
<band height="40" splitType="Prevent">
<textField isStretchWithOverflow="true">
<reportElement positionType="Float" stretchType="RelativeToBandHeight" x="0" y="20" width="100" height="20" isPrintInFirstWholeBand="true" isPrintWhenDetailOverflows="true" uuid="67cd0dfb-9a6d-4468- 8aac-3f48e539c584"/>
<textFieldExpression><![CDATA[$F{Resposta}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true">
<reportElement positionType="Float" stretchType="RelativeToBandHeight" isPrintRepeatedValues="false" x="0" y="0" width="100" height="20" isPrintInFirstWholeBand="true" isPrintWhenDetailOverflows="true" uuid="c7fa90d3-2b11-4127-b319-5461a80acb2d"/>
<textFieldExpression><![CDATA[$F{Nome Questão}]]></textFieldExpression>
</textField>
</band>
正如您所看到的,文本字段位置类型是float,拉伸类型是相对于带高度打印的,当细节溢出为true时,第一个整带为true打印,带溢出的拉伸也为true。
带区的拉伸类型设置为防止
我不明白为什么它不打印我应该在查询中得到的所有行。它应该继续打印更多页面,直到显示所有行。
有什么想法吗?首先选择您的乐队细节,并将Stretch Type设置为Stretch 其次,通过选择字段检查并设置以下详细信息: 位置类型:浮动 拉伸类型:相对于最高的对象 溢出拉伸:选中true 打印重复值:选中“真” 即使这不起作用,也要再添加一个配置- 显示越界内容:选中true 注意:如果您的字段用frame包装,那么也可以如上所述设置frame属性
如果执行上述设置,则我认为没有必要将“细节溢出”设置为true。如果将“拉伸类型”更改为“防止”以外的类型,会发生什么情况?仍然不起作用。。。