我正在将iReport与Eclipse一起使用。我必须显示一个值列表,我需要为区域(细节频段)设置固定高度将显示值。假设10个。
然后在此细节频段下方有两个字段,代表细节中显示的值的总和。
总和必须在我的页面中的特定位置显示:在10个细节频段下方,是否已满详细信息。这意味着,如果我只显示6行,则必须在下面有4个空行才能到达10行。
如果显示的值需要超过10个,则创建了第二页。
不确定我是否清楚,但是如果有人可以帮助我...谢谢
您可以使用背景谱带形成一个网格结构,如下
<background>
<band height="555" splitType="Stretch">
<rectangle>
<reportElement x="0" y="59" width="555" height="427" uuid="ee3fa6a5-eddb-4b38-b834-f2658bcf92d1"/>
</rectangle>
<line>
<reportElement x="0" y="95" width="555" height="1" uuid="4494e946-4ff5-4d57-b3eb-9d64eda302c4"/>
</line>
<line>
<reportElement x="0" y="125" width="555" height="1" uuid="4494e946-4ff5-4d57-b3eb-9d64eda302c4"/>
</line>
<line>
<reportElement x="0" y="155" width="555" height="1" uuid="4494e946-4ff5-4d57-b3eb-9d64eda302c4"/>
</line>
<line>
<reportElement x="0" y="185" width="555" height="1" uuid="4494e946-4ff5-4d57-b3eb-9d64eda302c4"/>
</line>
<line>
<reportElement x="0" y="215" width="555" height="1" uuid="4494e946-4ff5-4d57-b3eb-9d64eda302c4"/>
</line>
<line>
<reportElement x="0" y="245" width="555" height="1" uuid="4494e946-4ff5-4d57-b3eb-9d64eda302c4"/>
</line>
<line>
<reportElement x="0" y="275" width="555" height="1" uuid="4494e946-4ff5-4d57-b3eb-9d64eda302c4"/>
</line>
<line>
<reportElement x="0" y="305" width="555" height="1" uuid="4494e946-4ff5-4d57-b3eb-9d64eda302c4"/>
</line>
<line>
<reportElement x="0" y="335" width="555" height="1" uuid="4494e946-4ff5-4d57-b3eb-9d64eda302c4"/>
</line>
<line>
<reportElement x="0" y="365" width="555" height="1" uuid="4494e946-4ff5-4d57-b3eb-9d64eda302c4"/>
</line>
<line>
<reportElement x="0" y="395" width="555" height="1" uuid="4494e946-4ff5-4d57-b3eb-9d64eda302c4"/>
</line>
<line>
<reportElement x="0" y="425" width="555" height="1" uuid="4494e946-4ff5-4d57-b3eb-9d64eda302c4"/>
</line>
<line>
<reportElement x="0" y="455" width="555" height="1" uuid="4494e946-4ff5-4d57-b3eb-9d64eda302c4"/>
</line>
<line>
<reportElement x="142" y="59" width="1" height="427" uuid="01f3d5fc-9d23-4c7b-96cf-0ff7b3285400"/>
</line>
<line>
<reportElement x="308" y="59" width="1" height="427" uuid="01f3d5fc-9d23-4c7b-96cf-0ff7b3285400"/>
</line>
<line>
<reportElement x="443" y="59" width="1" height="427" uuid="01f3d5fc-9d23-4c7b-96cf-0ff7b3285400"/>
</line>
<line>
<reportElement x="555" y="59" width="1" height="427" uuid="01f3d5fc-9d23-4c7b-96cf-0ff7b3285400"/>
</line>
</band>
</background>
希望它有帮助。