The solution to this question is the following code:
worksheet.pageSetup.printTitlesColumn = "1:1";
You may want to place more rows on each page.
for example for 3 row of top write this string for printTitlesColumn propperty:
worksheet.pageSetup.printTitlesColumn = "1:3";