Page footer iReport only on the first page

Asked

Viewed 1,366 times

0

I am creating a report with iReport but I don’t have much knowledge, so I ask for your help.

Next, I need the contents of my page footer band to appear only on the first page of the report, so far so good, put in Print When Expression ... $V{PAGE_NUMBER} == 1 ? true : false.

However on the other pages it does not show the content but it still occupies the space, as I remove this blank on the subsequent pages?

2 answers

1

You are probably putting the expression in the wrong place, see the image below:

Imagem Page Footer

In the "Report Inspector" palette (left side), select the "Page Footer" tab. Your expression should be in this "Page Footer" and not in a specific element.

What is probably happening is that it is hiding its content but keeps the space of "Page Footer" because there is no condition expression there.

0

Hello, I was with this same problem and I found that this is a limitation of iReport, even if you hide the content by putting an expression on Print When Expression of Page Footer at the time of rendering iReport reserves that space.

How did I solve it? Well I don’t know if it’s the right way, but it was the best way I could find. Come on...

To my PageFooter I set a size of 1px, then instead of putting all the content on that band what I did was create a subreport containing all the content I wanted to appear only on the first page. I put this subreport in my PageFooter also with the size of 1px and ready, worked as I wanted, because? Simple, by default the subreport automatically expands its size according to its content which makes it appear on the first page, as in the others it does not appear and the size you defined of the band and itself subreport was 1px this will be imperceptible to the user.

In my case it worked perfectly, I hope it works for you too.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.