1
votes

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?

2
You should post the screenshot of your resulting report and jrxml fileAlex K

2 Answers

1
votes

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.

1
votes

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" ...