fitToPagesTall property

int fitToPagesTall
getter/setter pair

Represents the height of the pages that the worksheet will be scaled.

final Workbook workbook = Workbook();
final Worksheet sheet = workbook.worksheets[0];
sheet.getRangeByName('A1:M40').text = 'Hello';
sheet.pageSetup.fitToPagesTall = 2;
final List<int> bytes = workbook.saveAsStream();
saveAsExcel(bytes, 'fitToPagesTall.xlsx');
workbook.dispose();

Implementation

late int fitToPagesTall;