From a15adee059643cf6e90d3d992b0bbb63d93e442e Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Mon, 21 Jan 2013 12:14:18 +0800 Subject: [PATCH] JsonToExcel.php --- JsonToExcel.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/JsonToExcel.php b/JsonToExcel.php index 830b0b48..2e854f14 100644 --- a/JsonToExcel.php +++ b/JsonToExcel.php @@ -71,7 +71,10 @@ class Pman_Core_JsonToExcel extends Pman } $workbook->close(); - + require_once 'File/Convert.php'; + $fc= new File_Convert($this->outfile2, "application/vnd.ms-excel"); + $fn = $fc->convert("application/vnd.ms-excel"); + $fc->serve('attachment',$fn); // can fix IE Mess } -- 2.39.2