You can configure rows in a worksheet in order to repeat them at the top by using the PrintTitleRows property of the IPageSetup interface.
//Set rows to repeat at top worksheet.PageSetup.PrintTitleRows = "$5:$10";