您的位置:首页 > 编程语言 > PHP开发

Creating excel sheets through php with an image

2005-06-14 16:12 507 查看
The head like this:
header("Content-Type: application/vnd.ms-excel");
header("Expires: 0");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("content-disposition: attachment;filename=monthly_report.xls");
The Content:
$sheet->mergeCells(0,0,2,14);
$titleFormat =& $xls->addFormat();
$titleFormat->setSize('20');
$titleFormat->setColor('navy');
$titleFormat->setBottom(2);
$titleFormat->setBottomColor('navy');
$titleFormat->setAlign('merge');
$sheet->write(0,0,"Monthly Report",$titleFormat);
But,I used pear display excel data.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息