Are you printing an invoice layout that includes a portal listing of the invoice lines? Or repeated fields?
You may want to examine how the Invoies starter solutions in either Fmp 11 or fmp 12 print an invoice. They use a portal for data entry, but do not use a portal to print the invoice. They use a list view layout based on the portal's table and thus can print invoices of any number of pages.