how to repeat the rows that are non-contiguous in calc

I want to print certain rows to repeat at the top and bottom of the pages something like header and footer
normally, those rows are not contiguous.

In the print range option, of the Format menu only contiguous range of rows can be repeated that itself in the top only.

I wish there shall be an option to include more options to repeat the non-contiguous rows and place at which it to repeat such as at

a) top,
b) there itself,
c) at the bottom,


whý was this question closed? I was looking for the same thing