printTitleRows property

String printTitleRows
getter/setter pair

Represents the rows to be repeated at each page.

final Workbook workbook = Workbook();
final Worksheet sheet = workbook.worksheets[0];
sheet.getRangeByName('A1').text = 'S:NO';
sheet.getRangeByName('B1').text = 'Name';
sheet.getRangeByName('C1').text = 'Roll NO';
sheet.getRangeByName('D1').text = 'Tottal mark';
sheet.getRangeByName('A2:A100').number = 1;
sheet.getRangeByName('B2:B100').text = 'Names';
sheet.getRangeByName('C2:C100').number = 36288;
sheet.getRangeByName('D2:D100').number = 425;
sheet.pageSetup.printTitleRows = 'A1:D1';
final List<int> bytes = workbook.saveAsStream();
saveAsExcel(bytes, 'printTitleRows.xlsx');
workbook.dispose();

Implementation

late String printTitleRows;