Skip to content
Julian Halliwell edited this page Apr 8, 2017 · 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 ] ] ] )

Required arguments

  • workbook spreadsheet object

Optional arguments

  • 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.

Example

spreadsheet = New spreadsheet();
workbook = spreadsheet.new();
spreadsheet.setHeader( workbook=workbook, centerHeader="ACME Ltd" );

Clone this wiki locally