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();
?> |
|