Jasper reports i详细波段中的报告行错误
这是报告输出,我们将在细节栏中应用单行,当item name字段在iReport中因溢出而拉伸时,单行将保留并提供溢出区域的间隙 任何解决方案都会有帮助。使用Jasper reports i详细波段中的报告行错误,jasper-reports,Jasper Reports,这是报告输出,我们将在细节栏中应用单行,当item name字段在iReport中因溢出而拉伸时,单行将保留并提供溢出区域的间隙 任何解决方案都会有帮助。使用reportElement上的属性,您需要该属性来适应其他元素的溢出(行,文本字段ecc)。根据您想要实现的目标设置值RelativeToBandHeight或relativeTotallesObject 拉伸类型 NoStretch-报表元素保留其原始指定值 高度 相对带宽高度-报告元素将其高度调整为 匹配放置它的报告节的新高度,该高度具
reportElement
上的属性,您需要该属性来适应其他元素的溢出(行
,文本字段
ecc)。根据您想要实现的目标设置值RelativeToBandHeight
或relativeTotallesObject
拉伸类型
NoStretch-报表元素保留其原始指定值
高度
相对带宽高度-报告元素将其高度调整为
匹配放置它的报告节的新高度,该高度具有
受拉伸的影响
相对安装对象-报告元素
可以使其自动调整高度,以适应
他们所在的团体中最高的一个成员所遭受的拉伸
一部分
如果你画的是一条直线,那么它就是一条直线
<line>
<reportElement stretchType="RelativeToBandHeight" x="1" y="0" width="1" height="20" uuid="2d923fed-08e1-4304-8b06-ef9894bd8181"/>
</line>
但是,我不喜欢画线,而是在报告的文本字段上使用边框和填充
范例
<textField>
<reportElement stretchType="RelativeToBandHeight" x="0" y="0" width="100" height="20" uuid="45c316a5-4e29-4247-acb5-2f551e9a8f47"/>
<box topPadding="2" leftPadding="2" bottomPadding="2" rightPadding="2">
<pen lineWidth="0.25"/>
<topPen lineWidth="0.25"/>
<leftPen lineWidth="0.25"/>
<bottomPen lineWidth="0.25"/>
<rightPen lineWidth="0.25"/>
</box>
<textFieldExpression><![CDATA[$F{field}]]></textFieldExpression>
</textField>