34 require_once
'PEAR.php';
35 require_once
'Spreadsheet/Excel/Writer/Workbook.php';
67 header(
"Content-type: application/vnd.ms-excel");
68 header(
"Content-Disposition: attachment; filename=\"$filename\"");
70 header(
"Cache-Control: must-revalidate, post-check=0,pre-check=0");
71 header(
"Pragma: public");
87 return new PEAR_Error(
"Maximum column value exceeded: $col");
90 $int = (int)($col / 26);
95 $chr1 = chr(ord(
'A') + $int - 1);
98 $chr2 = chr(ord(
'A') + $frac);
101 return $chr1 . $chr2 .
$row;
rowcolToCell($row, $col)
Utility function for writing formulas Converts a cell's coordinates to the A1 format.
Spreadsheet_Excel_Writer($filename='')
The constructor.
Spreadsheet_Excel_Writer_Workbook($filename)
Class constructor.
send($filename)
Send HTTP headers for the Excel file.