如果是用COM的话,可以这样控制//这个是控制行的
$sheet ->Rows[1] ->Font ->Name = '隶书';
$sheet ->Rows[1] ->Font ->Color = 'Blue';
$sheet ->Rows[1] ->Font ->Bold = True;
$sheet ->Rows[1] ->Font ->UnderLine = True;
$sheet ->Rows[1] ->Font ->Name = '隶书';
$sheet ->Rows[1] ->Font ->Color = 'Blue';
$sheet ->Rows[1] ->Font ->Bold = True;
$sheet ->Rows[1] ->Font ->UnderLine = True;
或使用phpExcel生成excel2007格式的文件。
header("Content-Disposition:filename=php_excel.xls");
ws而有效