Page footer iReport only on the first page

0

I'm creating a report with iReport but I'm not very knowledgeable, so I'm asking for your help.

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

But on the other pages it does not show the content but it still occupies the space, how do I remove that space on the subsequent pages?

    
asked by anonymous 28.08.2014 / 01:23

2 answers

1

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

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

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

    
30.09.2014 / 18:16
0

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

How do I solve it? Well I do not know if it's the right way, but it was the best way I found it. Come on ...

For my PageFooter I set a size of 1px, then instead of putting all the content in that band what I did was create a subreport containing all the content that I wanted to appear only on the first page . I put this subreport in my PageFooter also with the size of 1px and that's it, it worked as I wanted, why? 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 set for the band and the subreport itself was 1px this will be imperceptible to the user.

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

    
18.11.2015 / 20:41