The following is the canRender event handler for a next page button on the PageTemplate. It hides the button on the last page of the report.

{||not this.form.isLastPage( )}