4

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

9
  • Can you post your jrxml file and the screenshot of report's design you want?
    – Alex K
    Commented Aug 18, 2012 at 14:26
  • 1
    What do you mean multi-page report? JR automatically creates new page
    – Alex K
    Commented Aug 18, 2012 at 14:28
  • My jrxml file is almost 3000 lines of code...Multipage means number of pages pdf
    – 1097733
    Commented Aug 20, 2012 at 10:00
  • My page width is 800 and height is 1000, I have placed textfileds and subreports in Detail band and Group Footer band as per our requirement. I'm using struts2, when i run my application pdf is generated in 3 pages, but after detail band it's displaying in new page.
    – 1097733
    Commented Aug 20, 2012 at 10:36
  • 1) Can you add the screenshots of your report's design (in iReport) and the resulting report? 2) What is your question? It is still unclear for me
    – Alex K
    Commented Aug 20, 2012 at 10:38

2 Answers 2

2

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

1
  • What is the value of pageHeight of jasperReport tag for this setup.
    – itsraja
    Commented May 27 at 8:52
1

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.