Retrieving Saved Spreadsheet

Topics: User Forum
Apr 19, 2011 at 11:42 PM

I'm just starting to use PHPExcel now and I'm still relatively new to PHP so sorry if this is a really simple question. I've written some code to make a test Excel sheet. It works perfectly but I can't figure out how to download the Excel sheet after saving it, though I believe I can do it with a JavaScript. I found in the documentation that it is stored in a temporary file but I don't know where in my directory this file is being stored. My PHP version is 5.3.6 and my PHPExcel version is 1.7.6 running on Vista.

Apr 19, 2011 at 11:53 PM

Take a look at the 01simple-download*.php examples in the /Tests directory. These demonstrate how to set the http response headers and output the workbook directly to a browser rather than creating the file on the server.