Jump to content
Changes to the Jaspersoft community edition download ×

Report problem


non_descript

Recommended Posts

Hi,

I have problem with the report that I am writing and I don't have any idea what may cause it.

The report that I write has many graphic elements(lines, rectangles ...),many textfields and a subreport.

The subreport is at the end of the page and has 2 textfields after it. I pass List of strings to the subreport. What I try to accomplish is - the page with the graphic element should be printed once and at the end of it I have to enumerate some names(max 99) and to put date after that. I print the names using the subreport that I mentioned above.

The problem is that when the list has ,more than 2 elements the generated pdf file has second page(which is normal) but on the second page are printed all the values of the fields in the report as duplicating the firs page but without the graphic elements and it generates empty page after the whole report. I can't understand why this happens.

If anyone have an idea what the reason for this might be please post some explanation.

 

Thanks in advance!

Post edited by: non_descript, at: 2007/05/12 09:27

Link to comment
Share on other sites

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Hi,

 

You should set isPrintWhenDetailOverflows="true" for these graphic elements.

It would probably make better sense to put all this infrastructure in the background sections.

 

The extra white page comes from the summary sections.

Make its height zero or remove it completely from JRXML.

 

I hope this helps.

Teodor

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...