Printing subgrids within a grid

We use a modified version of your function printView() in order to print grids in a specific html-layout. When using subgrids these grids are not shown in the print layout, though they are visible on the screen. Is there a way to also print the visible (=opened) subgrids within the main grid?

Regards & Tnx!

Please try to use attached js file instead of original one - it must work correctly for grid with sub-grids (4.85 KB)