{
// print_r($cfg);
require_once 'Spreadsheet/Excel/Writer.php';
- $pman = new Pman();
// Creating a workbook
- $outfile2 = $pman->tempName('xls');
+ $outfile2 = $this->tempName('xls');
// var_dump($outfile2);
$workbook = new Spreadsheet_Excel_Writer($outfile2);
//$workbook = new Spreadsheet_Excel_Writer();
}
-
-
function send($fn)
{
-
-
-
require_once 'File/Convert.php';
$fc= new File_Convert($this->outfile2, "application/vnd.ms-excel");
$fn = $fc->convert("application/vnd.ms-excel");
- print_r($fn);
- exit;
$fc->serve('attachment',$fn); // can fix IE Mess
}