previousWorksheet::setPaper (Previous) (Next) Worksheet::setFooternext

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

Worksheet::setHeader

Worksheet::setHeader – ページヘッダの見出しおよびオプションで余白を設定する

Synopsis

require_once "Spreadsheet/Excel/Writer.php";

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

Description

ページヘッダの見出しおよびオプションで余白を設定します。

Parameter

  • string $string - ヘッダのテキストです。

  • float $margin - オプションで上部余白のインチ指定です。

Note

This function can not be called statically.

Example

setHeader() の使用法

<?php

?>
previousWorksheet::setPaper (Previous) (Next) Worksheet::setFooternext

Download Documentation Last updated: Sun, 21 Jun 2009
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
Note by: martin@liga.dk
It is useful to know the control codes that can be used. I found these in a Perl module variant and they work fine :)

The available control character are:
------------------------------------

Control Category Description
======= ======== ===========
&L Justification Left
&C Center
&R Right

&P Information Page number
&N Total number of pages
&D Date
&T Time
&F File name
&A Worksheet name

&fontsize Font Font size
&"font,style" Font name and style
&U Single underline
&E Double underline
&S Strikethrough
&X Superscript
&Y Subscript

&& Miscellaneous Literal ampersand &