NativeExcel for .Net Developer's Reference

IPageSetup.SetPrintTitleColumnsMethod(Int32, Int32)

Sets the specified range of columns to be repeated on the left side of each page.

[Visual Basic]
SubSetPrintTitleColumns(_
ByValColumnStartAsInteger,_
ByValColumnCountAsInteger_
)
[C#]
voidSetPrintTitleColumns(
intColumnStart,
intColumnCount
);
[C++]
voidSetPrintTitleColumns(
intColumnStart,
intColumnCount
);
[JScript]
functionSetPrintTitleColumns(
intColumnStart,
intColumnCount
);

Parameters

ColumnStart
Integer. Indicates the index of the first column (one-based).
ColumnCount
Integer. Indicates the number of columns.

Example

This example defines columns two through four as the title columns.

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

See Also

IPageSetup Interface | NativeExcel Namespace | IPageSetup.SetPrintTitleColumns Overload List | PageSetup Property | SetPrintTitleRows Method | PrintTitleColumns Property | PrintTitleColumnsDefined Property