printTitleColumns property

String printTitleColumns
getter/setter pair

Represents the columns to be repeated at each page.

final Workbook workbook = Workbook();
final Worksheet sheet = workbook.worksheets[0];
sheet.getRangeByName('A1').text = 'S:NO';
sheet.getRangeByName('A2').text = 'Name';
sheet.getRangeByName('A3').text = 'Roll NO';
sheet.getRangeByName('A4').text = 'Tottal mark';
sheet.getRangeByName('B1:MM1').number = 1;
sheet.getRangeByName('B2:MM2').text = 'Names';
sheet.getRangeByName('B3:MM3').number = 7584;
sheet.getRangeByName('B4:MM4').number = 423;
sheet.pageSetup.printTitleColumns = 'A1:A4';
final List<int> bytes = workbook.saveAsStream();
saveAsExcel(bytes, 'printTitleColumns.xlsx');
workbook.dispose();

Implementation

late String printTitleColumns;