Monday, 9 September 2013

response to ajax with file doesn't work

response to ajax with file doesn't work

I use jquery jtable send ajax to get excel file from server but
Response::download doesn't work
$writer = (new WriterFactory())->createWriter(new
Excel5(public_path().'/file/myExport.xls'));
$phpExcel = $writer->convert($workbook);
$writer->write($phpExcel);
Response::download(public_path().'\file\myExport.xls','export',array('header'));

No comments:

Post a Comment