Sets the rows to use for the print titles. These are the rows that will be repeated on each page of a printed worksheet.

(This is not supported for charts.)

 public void SetPrintTitleRows(int firstRow, int numRows)
Public Sub SetPrintTitleRows(ByVal firstRow As Integer, ByVal numRows As Integer)

The 0-based number of the first row to in the print title.

The number of rows to include in the print title.

ps.SetPrintTitleRows(0, 2);
ps.SetPrintTitleRows(0, 2)