<?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('lr SVbN');
$format1->setSize(16);
$format2 =& $workbook->addFormat();
$format2->setFontFamily('lr พฉ');
$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">Excelt@C</a></p>');
print('</body></html>');
?>