Workbook::&addWorksheet -- Add a new worksheet to the Excel workbook.
Описание
Add a new worksheet to the Excel workbook. If no name is given the name
of the worksheet will be Sheeti with
i in [1..].
Возвращаемое значение
returns a reference to a worksheet object on success, PEAR_Error on failure
Заметка
Эта функция не должна вызываться статически.
Пример
Пример 39-1. Using &addWorksheet()
<?php
require_once 'Spreadsheet/Excel/Writer.php';
$workbook = new Spreadsheet_Excel_Writer('test.xls');
$worksheet =& $workbook->addWorksheet('My first worksheet');
if (PEAR::isError($worksheet)) {
die($worksheet->getMessage());
}
$workbook->close();
?>
|
|
|
Workbook::close (Previous)
|
(Next) Workbook::&addFormat
|
|
|
Download Documentation
|
Last updated: Mon, 02 Jul 2007 |
|
Do you think that something on this page is wrong? Please file a bug report or add a note.
|
| User Notes: |
Note by: Kiezpro
Seems like the worksheet name can't contain a slash ... at least I got a "File Corrupt" message from Excel when I tried to open a generated Excel file containing a worksheet with a slash in it's name. My version of Spreadsheet_Excel_Writer is 0.91.
|
|