Re: Re: Using Excel Spreadsheet Writer
| From: | Mark Wiesemann | Date: | Tue, 17 Jul 2007 12:23:38 +0000 |
| Subject: | Re: Re: Using Excel Spreadsheet Writer | ||
| References: | 1 2 3 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-27678@lists.php.net to get a copy of this message | ||
Tom Synnott wrote:
Mark I tried this... $xls->write("/home/19288/domains/mydomain.com/html/reports/test.xls"); But I received the error call to undefined method... Am I not understanding this correctly?Please send your emails also to the list, thanks. You're mixing two things here: write() (on a worksheet, not the workbook) writes into the spreadsheet, it does not write a file. What you need to do is: Pass the filename to the constructor, do the normal operations (writing, formatting etc.) on the workbook and the sheets, call $xls->close();, and the file will be written (and not sent to your browser). Regards, Mark -- http://www.markwiesemann.eu