NativeExcel for .Net Developer's Reference

IPageSetup.SetPrintTitleRows Method ()

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

[Visual Basic]
Sub SetPrintTitleRows()
[C#]
void SetPrintTitleRows();
[C++]
void SetPrintTitleRows();
[JScript]
function SetPrintTitleRows();

Example

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

[C#]
  book.Worksheets[1].PageSetup.SetPrintTitleRows();
[Visual Basic]
  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