Closed sivachaitanya closed 7 years ago
You can try 2 things:
$writer->openToBrowser('Spout_output');
to $writer->openToBrowser('Spout_output.xlsx');
(more correct but I don't think that will solve your problem)exit
callThis is more a framework problem than a Spout problem here, so it's hard to help. Also, make sure that your spoutdownload
is called!
Hello,
I am new to Spout and downloaded the packages manually and placed them inside "Libraries" folder of my CodeIgniter project. My Controller looks like -
My view looks like -
<a href="<?php echo base_url(); ?>index.php/download/spoutdownload"> Download data in Excel format</a>
If I click the link in the browser it displays "Failed to load resource: net::ERR_INVALID_RESPONSE" in my browser console and I am unable to download the file. Can you please help me resolve the issue.