Jump to content

how to Displaying fields by page no


vamsi18

Recommended Posts

  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Hi

thq very much for ur reply.

In my report  right bottom i have 2 fields.

in that 1 field will be displayed on last page and other in remaining pages.

For ex:  In page 1

                                continue page

                 in page 2

                                  continue page

               in page 3 (last page)

                                  End of report.

pls help me

thqs in advance

 

Link to comment
Share on other sites

i think you can compare $V{PAGE_NUMBER} $V{PAGE_COUNT} ,and i think a field is ok,no need to use two.
you can use this :
$V{PAGE_NUMBER}.intValue()  == $V{PAGE_COUNT}.intValue ? "End of report" : "continue page"
in the text Field's Text Field Expression .
by the way, in my office PC,i have not the ireport ,but if you have not resolve,i can do this this night when i go home.

Link to comment
Share on other sites

thqs for ur reply.

But this is not working. page_count is not working, i displayed the value of this variable in first page it displayed 1 in 2nd 0 displayed.

 

pls try to give solution for the below

For ex: In page 1

 

continue page

 

in page 2

 

continue page (this is from propert file)

 

in page 3 (last page)

 

3 text fields i have to display(these are fields)

 

 

thqs in advance

Link to comment
Share on other sites

It sounds like telo's idea should be possible. Maybe there are some details to work out.

 

But as the problem is described it will be much easier to use the Last Page Footer band. This is designed for the type of thing that you are describing, so it lets you control the footer on the final page easily without any coding.

 

Regards,
Matt
Jaspersoft

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...