Why not print from layout based on the portal lines? Your script can go to the related records and then you can use list view. The header and footer can contain your orig parent record information.
I agree with what mr_vodka said. The golden rule is to always print from where the data actually IS, not from where you can see the data. It gives you much more control and greater flexibility.
kaiviti wrote (in part):
I do not want to print out more pages than necesary but I also want to have printouts that cover more than one page to have the same header and to split the rows so that they are not cropped. Can someone help me set this up correctly please?
You can set up the layout for printing from the line-item child records using the GTRR as suggested, and set a standard header and footer which draw from the related parent-record. If you set the Body part to not break over pages in the part setup area, that should keep them whole. and you can add Trailing and Leading grand summary area in which you show Customer info and Totals.
This will give you a printout that looks like a standard professional layout structure with the line-items taking as many or as few pages as are needed, the customer details at the top in the Leading Grand Summary part, and the totals at the end on the final page in the Trailing G-S part.
Thanks to all,
Some very helpful tips and I will try to implement them. Still feeling my around so I may end up taking some time to achieve what you have suggested but, I will get there. Thanks again.