Re: Spreadsheet_Excel_Writer Help
| From: | Scott Mattocks | Date: | Thu, 24 Jun 2004 20:50:27 +0000 |
| Subject: | Re: Spreadsheet_Excel_Writer Help | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-13318@lists.php.net to get a copy of this message | ||
I found the solution to my own problem. When I created the workbook I
did it with the optional file name like it says in the docs.
$workbook = new Spreadsheet_Excel_Writer('filename');
For some reason when I went to send the workbook using the
send('filename') method it would start the headers for the excel file
but then out put the web page.
I don't know if this is a bug, a documenation issue or me being dumb.
Scott Mattocks wrote:
I am having some trouble with Spreadsheet_Excel_Writer. After I call send() and close() the document begins to download as expected but when I open the file it is an Excel version of the page I was just visiting. The correct file is in /tmp as OLE_PPS_Filejo0LoZ or some other random file name but it doesn't get sent as the download. Does anyone have any idea what may be going on here? I have recently upgraded to version 0.8. Thanks, Scott Mattocks