Worksheet::setHeader

Worksheet::setHeader – Set the page header caption and optional margin.

Synopsis

require_once "Spreadsheet/Excel/Writer.php";

void Worksheet::setHeader ( string $string , float $margin=0.5 )

Description

Set the page header caption and optional margin.

Parameter

  • string $string - The header text

  • float $margin - optional head margin in inches.

Note

This function can not be called statically.

Example

Using setHeader()

<?php

?>