Multi Page Invoice

It seems like Navision out of the can cannot produce multi-page invoices. When the invoice exceeds the maximum lines per page the invoice form gets caught in a loop and produces an infinte number of pages. I have tracked the problem down in the code and would like to know, before I proceed, if anyone had the simple code that needs to be put in the page loop of the invoice.

Already figured this one out. Please don’t reply on my account.