我正在使用Java Swing和JasperReports.在贾斯珀我有Band: Details.我周围创建的项目(顶部,左侧,右侧).问题是底部的线.
报告布局
当我放入页脚并运行它时 - 该行不会关闭方块.我如何能够关闭这个广场并独立于我拥有多少物品?
当前输出,具有预期结果
若要添加边框在每一页表的末尾使用的columnFooter频段和设置isFloatColumnFooter="true"上jasperReport的标签
例
<?xml version="1.0" encoding="UTF-8"?>
<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="Example" pageWidth="595" pageHeight="842" columnWidth="500" leftMargin="20" rightMargin="20" topMargin="30" bottomMargin="30" isFloatColumnFooter="true" uuid="43c90ca5-f3c3-4dda-8423-9ff1442f90e3">
.....
<columnFooter>
<band height="2">
<line>
<reportElement x="0" y="0" width="555" height="1" uuid="1c32f6e5-414a-428d-8b06-35cd80e8dff6"/>
</line>
</band>
</columnFooter>
</jasperReport>
Run Code Online (Sandbox Code Playgroud)
要在表的末尾添加边框(如果溢出则不在每个页面上),使用虚拟组和groupFooter波段
例
<group name="lastBorderLine">
<groupExpression><![CDATA["dummy"]]></groupExpression>
<groupFooter>
<band height="2">
<line>
<reportElement x="0" y="0" width="555" height="1" uuid="3510fdc6-0f30-4ec9-8e17-ac51fd4012c1"/>
</line>
</band>
</groupFooter>
</group>
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1781 次 |
| 最近记录: |