How can I print an image only in the last row of a table in Jasper Reports

Asked

Viewed 43 times

1

I have a table that comes out in PDF on Jasper Reports and I need a boolean expression to print an image only in the last row of the table. Someone can help me?

  • Why don’t you put this image in the report summary?

  • this report has no summary, and when I say image, it is not the same, it can be an up arrow and an down arrow (profit indicator per group)

  • Put a summary and choose the image through any logic.

  • I was able to find the solution to this problem with the use of the Jasper internal variable: $V{REPORT_COUNT}. intValue()

  • Thanks for the help @Reginaldorigo

1 answer

1


I was able to find the solution to this problem with the use of the internal variable of Jasper:

$V{REPORT_COUNT}.intValue()

It works like a line counter from the detail range of your table, so I just use it on image and add it to the lines you need.

Browser other questions tagged

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