From: Alan Knowles Date: Mon, 13 Dec 2010 07:37:53 +0000 (+0800) Subject: GnumericToExcel.php X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=2ba7cad695dfc638631cbec5aa25443106cfb127 GnumericToExcel.php --- diff --git a/GnumericToExcel.php b/GnumericToExcel.php index 3f4f31b2..38d96402 100644 --- a/GnumericToExcel.php +++ b/GnumericToExcel.php @@ -93,7 +93,7 @@ class Pman_Core_GnumericToExcel extends Pman $fh = fopen($targetTmp, 'r'); header('Content-type: application/vnd.ms-excel'); header('Content-Disposition: attachment; filename="' .addslashes($fname). '"'); - + header('Content-length: '. filesize($targetTmp)); // will not work on IE... - needs while/fget.. fpassthru($fh); unlink($targetTmp);