Jasper starts subrerport from a new page

0

Hi,
Please see the report design. Subreport 3 is started from page 2 instead of page 1 after the second subreport.

    <detail>
        <band height="537">
            <subreport>
                <reportElement x="0" y="0" width="258" height="537" uuid="cc14ca75-7b18-49f8-9baa-a37f1c20f8ea"/>
                <subreportExpression><![CDATA["Address.jasper"]]></subreportExpression>
            </subreport>
            <subreport>
                <reportElement x="258" y="0" width="462" height="204" uuid="cc14ca75-7b18-49f8-9baa-a37f1c20f8ea"/>
                <subreportExpression><![CDATA["Payee_Address.jasper"]]></subreportExpression>
            </subreport>
            <subreport>
                <reportElement x="258" y="204" width="462" height="333" uuid="9ca03624-2653-4b22-9e70-2ab8effc7cdc"/>
<!-- height of this report actually greater than 500, so this starts all together from new page rather than continue from same page -->
                <subreportExpression><![CDATA["General_Ledger.jasper"]]></subreportExpression>
            </subreport>
        </band>
    </detail>


Please let me know how can I make sure a subreport starts from same page.


Thanks
Sachin

sjmittal's picture
Joined: Jan 24 2016 - 7:43pm
Last seen: 3 years 4 months ago

I would like to update on one thing.
If the height of subreport is less than the report element hieght. Like in this case 333 for subreport element General_Ledger.jasper
then the report rendering starts from same page.

However if height of subreport is greater than that then entire rendering starts from new page.

We would like to have the rendering start on same page and what gets overflowed that only renders onto next page.

Is that possible. If yes, how?

Thanks again
Sachin
 

 

sjmittal - 3 years 6 months ago

0 Answers:

No answers yet
Feedback
randomness