我创建了一个报告,该报告基本上是员工填写的时间表,因此它是一个表格,其中一行设计为预先填写员工的数据(例如:姓名/姓氏......).
我的SQL请求检索了16个员工记录.一个页面只包含13行,因此它会自动为最后3行创建第二页.我的问题(和要求)是创建一个包含13行的第二页,其中3行将填充记录,其中10行将留空.
这是一个例子:
我怎样才能做到这一点?
如果我想创建一个包含13个空行的额外页面怎么办?
有谁可以帮助我吗?
Gau*_* L. -2
我在 jaspersoft 社区论坛上得到了答案:http://community.jaspersoft.com/questions/817708/resolved-how-fill-reports-blank-space-empty-row-table
原理是自定义背景的波段,这里是模型的示例:
<background>
<band height="555" splitType="Stretch">
<rectangle>
<reportElement uuid="ee3fa6a5-eddb-4b38-b834-f2658bcf92d1" x="0" y="59" width="800" height="427"/>
</rectangle>
<line>
<reportElement uuid="4494e946-4ff5-4d57-b3eb-9d64eda302c4" x="0" y="95" width="800" height="1"/>
</line>
<line>
<reportElement uuid="4494e946-4ff5-4d57-b3eb-9d64eda302c4" x="0" y="125" width="800" height="1"/>
</line>
<line>
<reportElement uuid="4494e946-4ff5-4d57-b3eb-9d64eda302c4" x="0" y="155" width="800" height="1"/>
</line>
<line>
<reportElement uuid="4494e946-4ff5-4d57-b3eb-9d64eda302c4" x="0" y="185" width="800" height="1"/>
</line>
<line>
<reportElement uuid="4494e946-4ff5-4d57-b3eb-9d64eda302c4" x="0" y="215" width="800" height="1"/>
</line>
<line>
<reportElement uuid="4494e946-4ff5-4d57-b3eb-9d64eda302c4" x="0" y="245" width="800" height="1"/>
</line>
<line>
<reportElement uuid="4494e946-4ff5-4d57-b3eb-9d64eda302c4" x="0" y="275" width="800" height="1"/>
</line>
<line>
<reportElement uuid="4494e946-4ff5-4d57-b3eb-9d64eda302c4" x="0" y="305" width="800" height="1"/>
</line>
<line>
<reportElement uuid="4494e946-4ff5-4d57-b3eb-9d64eda302c4" x="0" y="335" width="800" height="1"/>
</line>
<line>
<reportElement uuid="4494e946-4ff5-4d57-b3eb-9d64eda302c4" x="0" y="365" width="800" height="1"/>
</line>
<line>
<reportElement uuid="4494e946-4ff5-4d57-b3eb-9d64eda302c4" x="0" y="395" width="800" height="1"/>
</line>
<line>
<reportElement uuid="4494e946-4ff5-4d57-b3eb-9d64eda302c4" x="0" y="425" width="800" height="1"/>
</line>
<line>
<reportElement uuid="4494e946-4ff5-4d57-b3eb-9d64eda302c4" x="0" y="455" width="800" height="1"/>
</line>
<line>
<reportElement uuid="01f3d5fc-9d23-4c7b-96cf-0ff7b3285400" x="160" y="59" width="1" height="427"/>
</line>
<line>
<reportElement uuid="01f3d5fc-9d23-4c7b-96cf-0ff7b3285400" x="320" y="59" width="1" height="427"/>
</line>
<line>
<reportElement uuid="01f3d5fc-9d23-4c7b-96cf-0ff7b3285400" x="480" y="59" width="1" height="427"/>
</line>
<line>
<reportElement uuid="01f3d5fc-9d23-4c7b-96cf-0ff7b3285400" x="639" y="59" width="1" height="427"/>
</line>
</band>
</background>
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
2426 次 |
最近记录: |