I have created a template in Jaspersoft which is compiled and from Java I create a pdf passing the information, the problem is that there is a variable that I do not want to show on the last page but if I put
Print When Expression: $V{PAGE_NUMBER} != $V{PAGE_COUNT}
I get the error:
Report (wrong name: Reporte_3dc3335aad3f4664cb285e02d0694faf477f6a7df179bb1ecdaadc1d44a10091)
because I have written != and I don't know how to solve it so that the variable does not appear on the last page.