1097733
1097733

Reputation: 477

How can I create a multi-page PDF report in Jasper/iReport?

I want to create a multipage PDF report using iReport.

When I'm designing in iReport it crosses A4 page size. If I increase page height, it prints out empty space in the page. How can I create a multi-page report?

The resulting report:

enter image description here

Upvotes: 4

Views: 13789

Answers (2)

Premkumar Manipillai
Premkumar Manipillai

Reputation: 2151

I am using bellow code and its works perfect for me. You may also try this code.

<detail>
        <band height="802" splitType="Stretch">
        // page 1 design here
        </band>



        <band height="802" splitType="Stretch">
        // page 2 design here
        </band>



        <band height="802" splitType="Stretch">
        // page 3 design here
        </band>


</detail>

My actual code output pdf screen shot

Please Note: i set all margin as 0 i set the page margin as 0

Upvotes: 2

Nilesh
Nilesh

Reputation: 313

In common properties of main report there is page setup option. There you provide the page dimensions which you want in your output. Also ignore pagination flag should be set to false

Upvotes: 1

Related Questions