通过标题导出时格式化Excel

时间:2013-10-29 12:25:19

标签: php html export-to-excel

我个人以前从未使用过这种方法,但我找不到任何可以帮助我的信息。 我正在更新的页面使用以下内容将html表导出为Excel文件。

header("Content-type: application/octet-stream"); 
header("Content-Disposition: attachment; filename=Target-Report.xls"); 
header("Pragma: no-cache"); 
header("Expires: 0");   

它生成文件就好了,我只需要使报告更具代表性。 有没有办法在Excel中设置单元格类型(即百分比)并设置小数位(在我创建excel公式的单元格中)。

我更喜欢使用PHPExcel,但我没时间重写整个脚本

0 个答案:

没有答案