Aspose.Cells - Set Print Titles

//Obtaining the reference of the PageSetup of the worksheet
PageSetup pageSetup = sheet.getPageSetup();     

//Defining column numbers A & B as title columns
pageSetup.setPrintTitleColumns("$A:$B");

//Defining row numbers 1 & 2 as title rows
pageSetup.setPrintTitleRows("$1:$2");

Download Source Code

For More Examples, Please Visit Aspose Docs

Last edited May 9, 2014 at 4:25 AM by shoaibkhan, version 3