Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.9.3

Request #4558 XLS renderer: add possibility to write spreadsheet to file
Submitted: 2005-06-08 20:52 UTC
From: wiesemann Assigned:
Status: Closed Package: Structures_DataGrid
PHP Version: Irrelevant OS: Irrelevant
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 44 - 21 = ?

 
 [2005-06-08 20:52 UTC] wiesemann
Description: ------------ I'd like to propose the following changes to XLS renderer: www.markwiesemann.de/php/XLS.diff.txt It allows to either send the spreadsheet to the browser (current behaviour) or to write the spreadsheet to a file. Usage: - write spreadsheet to example.xls: $dg =& new Structures_DataGrid(null, null, DATAGRID_RENDER_XLS); $dg->renderer->setFilename('example.xls', false); $dg->bind(...); $dg->render(); - send spreadsheet (with default filename spreadsheet.xls) to browser: $dg =& new Structures_DataGrid(null, null, DATAGRID_RENDER_XLS); $dg->bind(...); $dg->render(); - send spreadsheet (with filename example.xls) to browser: $dg =& new Structures_DataGrid(null, null, DATAGRID_RENDER_XLS); $dg->renderer->setFilename('example.xls'); $dg->bind(...); $dg->render(); I have tested all three cases.

Comments

 [2005-06-29 20:49 UTC] asnagy
This bug has been fixed in CVS. In case this was a documentation problem, the fix will show up at the end of next Sunday (CET) on pear.php.net. In case this was a pear.php.net website problem, the change will show up on the website in short time. Thank you for the report, and for helping us make PEAR better.