penders - 3:57 pm on Aug 11, 2011 (gmt 0)
The browser can only print what is on the page. The content might be hidden, but visible only when printed using a media="print" stylesheet, nevertheless it is already there.
So, the short answer is, if the user wants to print all the records in detail then you need a page that has all the records in detail already on it (possibly with a page break after each detail record)!?
Or... may be... load each detail record in turn into a frame and issue a window.print()? But the user is going to have to respond to each record in turn.