NativeExcel for .Net Developer's Reference

IPageSetup.SetPrintTitleRowsMethod

Sets the rows that contain the cells to be repeated at the top of each page by using rows indexes.

Overload List

Sets the first row to be repeated on the top of each page.

[Visual Basic] SubSetPrintTitleRows()
[C#] voidSetPrintTitleRows();
[C++] voidSetPrintTitleRows();
[JScript] functionSetPrintTitleRows();

Sets the specified row to be repeated on the top of each page.

[Visual Basic] SubSetPrintTitleRows(ByValInteger)
[C#] voidSetPrintTitleRows(int);
[C++] voidSetPrintTitleRows(int);
[JScript] functionSetPrintTitleRows(int);

Sets the specified range of rows to be repeated on the top of each page.

[Visual Basic] SubSetPrintTitleRows(ByValInteger,ByValInteger)
[C#] voidSetPrintTitleRows(int,int);
[C++] voidSetPrintTitleRows(int,int);
[JScript] functionSetPrintTitleRows(int,int);

Example

This example defines row two through four as the title rows.

[C#]
book.Worksheets[1].PageSetup.SetPrintTitleRows(2, 3);
[VisualBasic]
book.Worksheets(1).PageSetup.SetPrintTitleRows(2, 3)
[C++]
book->Worksheets->Item[1]->PageSetup->SetPrintTitleRows(2, 3);

See Also

IPageSetup Interface | NativeExcel Namespace | PageSetup Property | SetPrintTitleColumns Method | PrintTitleRows Property | PrintTitleRowsDefined Property