Re: Spreadsheet Writer - save to local file system
| From: | Mark Wiesemann | Date: | Mon, 07 Nov 2005 12:23:23 +0000 |
| Subject: | Re: Spreadsheet Writer - save to local file system | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-21826@lists.php.net to get a copy of this message | ||
"prue@clipmagic.com.au" wrote:
> In the [PEAR] [ANNOUNCEMENT] Structures_DataGrid-0.6.3 (beta) Released 25
> Oct 2005, it mentions:
>
> * Bug #4558 : Modified render output for XLS renderer to allow saving to
> the local file system thanks <wiesemann at php dot net>
>
> Does this allow the user to nominate the file name and location or does the
> file name still need to be hardcoded in the script?
Who is the "user"? If you mean the user of your application that should
see a dialog box: no, that's not available.
If you mean the user of Structures_DataGrid - just call:
$dg->renderer->setFilename('/path/to/filename.xls', false)
This will place the Excel file in /path/to/ with the name filename.xls
(on the server, of course).
Mark