i want PDF's in A4 size

Hi everybody!!!

I want PDF's to be generated in A4 size.. I made the code as

<jasperReport name="report1" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="71" bottomMargin="30">

But i am getting the error as

"The detail section, the page and column headers and footers and the margins do not fit the page height."

i dont have any idea on Pagination...


Pleas help me on that as soon as possible


Thank you!!!!





Hi,

You need to resize the bands of your report to their minimum height so that there is no extra whitespace at the bottom of the band. Otherwise the bands do not fit on one page and this is what the error message tries to say.


I hope this helps,

Peter Severin
- JasperAssistant Team
Hi

i really need more bands of A4 size..

But we are left with only one band..

How i can have more bands..

anyway thanks Peter for ur suggestion.. I need some other solution
You can make a band that occupies the entire page. For this you need to set the band's size to: pageheight - topmargin - bottommargin

I hope this helps,

Peter Severin
- JasperAssistant Team
This topic is archived Other recent topics