NativeExcel2 for .Net Developer's Reference

IPageSetup.SetPrintTitleRowsMethod(Int32, Int32)

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

[Visual Basic]
SubSetPrintTitleRows(_
ByValRowStartAsInteger,_
ByValRowCountAsInteger_
)
[C#]
voidSetPrintTitleRows(
intRowStart,
intRowCount
);
[C++]
voidSetPrintTitleRows(
intRowStart,
intRowCount
);
[JScript]
functionSetPrintTitleRows(
intRowStart,
intRowCount
);

Parameters

RowStart
Integer. Indicates the index of the first row (one-based).
RowCount
Integer. Indicates the number of rows.

Example

This example defines rows 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 | IPageSetup.SetPrintTitleRows Overload List | PageSetup Property | SetPrintTitleColumns Method | PrintTitleRows Property | PrintTitleRowsDefined Property