'Set the rows to repeat at the top of each printed page.
Args:
first_row: Start row for range.
last_row: End row for range.
Returns:
Nothing.'

def repeat_rows(self, first_row, last_row=None):

    if (last_row is None):
        last_row = first_row
    first_row += 1
    last_row += 1
    area = ('$%d:$%d' % (first_row, last_row))
    sheetname = quote_sheetname(self.name)
    self.repeat_row_range = ((sheetname + '!') + area)
