JasperReports: How to remove new page blank in subreport

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-13 00:34:26

问题


I have create one report and put subreport into summary. I have problem to remove the new page blank in subreport because i have put clicks "run to bottom" in subreport's properties. After that, i run my report properly. The data appear correctly but problem comes when one new page blank appear after page. I don't know how to remove the blank page. Anyone know about this?


回答1:


i know my mistakes is not put sub report by size band. Size band and sub ​​report must be the same size so that no blank page will come out.




回答2:


I solve this adding the attribute isRemoveLineWhenBlank="true" for the reportElement tag:

<reportElement mode="Opaque" x="0" y="0" width="802" height="60" isRemoveLineWhenBlank="true" ...

And the band height, reportElement height and the subreport height must be equals:

<detail>
        <band height="60" splitType="Stretch">
            <subreport>
                <reportElement mode="Opaque" x="0" y="0" width="802" height="60" ...


来源:https://stackoverflow.com/questions/10833744/jasperreports-how-to-remove-new-page-blank-in-subreport

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!