previousWorksheet::setHeader (Previous) (Next) Worksheet::centerHorizontallynext

View this page in Last updated: Sun, 18 Oct 2009
English | Brazilian Portuguese | Chinese | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Turkish

Worksheet::setFooter

Worksheet::setFooter – Définit le pied de page et, optionnellement, la marge

Synopsis

require_once "Spreadsheet/Excel/Writer.php";

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

Description

Définit le pied de page et, optionnellement, la marge.

Parameter

  • string $string - Le texte du pied de page

  • float $margin - La marge optionnelle, pour le pied de page, en pouces

Note

This function can not be called statically.

Example

Exemple avec setFooter()

<?php

?>
previousWorksheet::setHeader (Previous) (Next) Worksheet::centerHorizontallynext

Download Documentation Last updated: Sun, 18 Oct 2009
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
Note by: Oliver Fust
Excel constants:

&A = &[Tab] = Tab Name
&D = &[Date] = Date
&F = &[File] = File Name
&N = &[Pages] = Total # of Pages
&P = &[Page] = Page Number
&T = &[Time] = Time
&W = &[Path] = Working Directory (Path)


example:

$worksheet->setFooter('Page &P of &N');
Note by: Oliver Fust
For the left/right header:

&L for Left header
&C for Center header
&R for Right header

example:
$worksheet->setHeader('&LConfidential&C&F&RPage &P of &N');