-
-
Notifications
You must be signed in to change notification settings - Fork 36
setHeader
Julian Halliwell edited this page Sep 20, 2021
·
6 revisions
Adds a header to a spreadsheet which will display when printed. Text can be provided for the left, centre and right of the header.
setHeader( workbook [, leftHeader [, centerHeader [, rightHeader ] ] ] )
-
workbook
spreadsheet object
-
leftHeader
string: text to place on the left hand side of the header. -
centerHeader
string: text to place in the centre of the header. -
rightHeader
string: text to place on the right of the header.
Chainable? Yes.
Headers can include formatting codes allowing styles and dynamic values such as page numbers to be used in headers.
spreadsheet = New spreadsheet();
workbook = spreadsheet.new();
spreadsheet.setHeader( workbook=workbook, centerHeader="ACME Ltd" );
spreadsheet.setHeader( workbook=workbook, rightHeader="Page &P of &N" ); // Page 1 of 1 will be printed in the right hand header