Aug 29, 2012 at 12:35 PM
Edited Aug 29, 2012 at 12:43 PM
phpexcel export and download file take a long time.
so, i want display waiting dialog. like this...
alert ( "download start.." );
header('Content-Disposition: attachment;filename="' . "test.xlsx". ';"' );
// take a long time job.
$objWriter = PHPExcel_IOFactory::createWriter($this->_objPHPExcel, 'Excel2007');
alert ( "download completed !!" );
but, "test.xlsx" file is corrupted.
$objWriter->save('php://output'); <<= good work when this line comments.
I want show waiting information( progress bar, waiting dialog, etc ) to user while phpexcel work and download.
See my response here : https://phpexcel.codeplex.com/discussions/393770
Don't permit a progress bar, but a accurate 'please wait'.
IMHO, using alert() for this is not very nice... and, in my case, downloading the file is quick, but building the file take some time.