NativeExcel for .Net Developer's Reference

IPageSetup.SetPrintTitleRowsMethod()

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

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

Example

This example sets the first row to be repeated on the top of each page.

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

See Also

IPageSetup Interface | NativeExcel Namespace | IPageSetup.SetPrintTitleRows Overload List | PageSetup Property | SetPrintTitleColumns Method | PrintTitleRows Property | PrintTitleRowsDefined Property