void Worksheet::setMerge (
integer $first_row
, integer $first_col
, integer $last_row
, integer $last_col
)
This package is not documented yet.
First row of the area to merge
First column of the area to merge
Last row of the area to merge
Last column of the area to merge
throws no exceptions thrown
This function can not be called statically.
Using setMerge()
<?php
require_once 'Spreadsheet/Excel/Writer.php';
$workbook = new Spreadsheet_Excel_Writer();
$worksheet = $workbook->addWorksheet('SetMerge');
// Sets the color of a cell's content
$format = $workbook->addFormat();
$format->setFgColor(10);
$worksheet->write(0, 0, 'Cell Start', $format);
// Merge cells from row 0, col 0 to row 2, col 2
$worksheet->setMerge(0, 0, 2, 2);
$workbook->send('SetMerge.xls');
$workbook->close();
?>