<?php
// ์ฌ“๚ 2008/09/30
require_once("Spreadsheet/Excel/Writer.php");

$workbook = new Spreadsheet_Excel_Writer('./sheet/sample20-1.xls');
$worksheet =& $workbook->addWorksheet('ƒV[ƒg1');

$format1 =& $workbook->addFormat();
$format1->setFontFamily('‚l‚r ƒSƒVƒbƒN');
$format1->setSize(16);
$format2 =& $workbook->addFormat();
$format2->setFontFamily('‚l‚r –พ’ฉ');
$format2->setSize(20);

$worksheet->writeString(0, 0, '“Œ‹ž“s', $format1);
$worksheet->writeString(1, 0, '‘ๅใ•{', $format2);
$workbook->close();

print('<html>');
print('<head>');
print('<meta http-equiv="Content-Type" content="text/html;charset=Shift_JIS" />');
print('</head>');
print('<body>');
print('<p><a href="./sheet/sample20-1.xls">Excelƒtƒ@ƒCƒ‹</a></p>');
print('</body></html>');
?>