I have an idea that it should be possible for the genrepox.GRXDet() function to calculate if the next detail record will fit on the remaining page or not. If it won't fit, GRXDet() should set variables indicating that there are pending detail records, which detail record was the last printed and from which detail band (child table alias). A function located somewhere in the header band should then issue a SKIP -1 in the parent table if there are pending detail records. The parent record should then either be repeated on this page or not according to a preset parameter, and GRXDet() should refuse to print details from all but the halted detail band, deliver the remaining records and set the variable indicating pending details to .f. before returning.
Will it work?
Vidar Johannessen