You can achieve the repeating of specific rows or columns by using the two properties RepeatedRows & RepeatedColumns under the PrintTitles property that can be found in the Repeating Rows/Columns section with an example code included.
As we already have this covered, I will change the status of your public item to Declined.
If in need of any further assistance, please do not hesitate to reach out to us.