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 )

Описание

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

Замечание

This function can be called statically, but it is easiest when called from the workbook object.

Пример

Using send()

<?php
$workbook
->send('filename.xls');
?>
    Поддержать сайт на родительском проекте КГБ