Spreadsheet_Excel_Writer::send
Spreadsheet_Excel_Writer::send – Send HTTP headers for the Excel file.
Synopsis
require_once "Spreadsheet/Excel/Writer.php";
void Spreadsheet_Excel_Writer::send (
string $filename
)
Description
Send HTTP headers with the correct content-type (application/vnd.ms-excel), cache control and filename for the file.
Parameter
-
string $filename
- The filename to use for HTTP headers
Note
This function can be called statically, but it is easiest when called from the workbook object.
Example
Using send()
<?php
$workbook->send('filename.xls');
?>