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

Request #16541 Need ability to get raw output of Spreadsheet document
Submitted: 2009-08-20 09:31 UTC
From: jasonlloyd Assigned:
Status: Verified Package: Spreadsheet_Excel_Writer (version 0.9.1)
PHP Version: 5.1.4 OS: All
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 : 33 + 37 = ?

 
 [2009-08-20 09:31 UTC] jasonlloyd (Jason Lloyd)
Description: ------------ For use cases other than sending to a browser (such as sending in a multi-part MIME encoded email) a method that returns the raw spreadsheet would be nice. Right now I am hijacking the output buffer to capture the results of $workbook->close(); in order to capture output into a variable. Test script: --------------- //my naughty workaround: ob_start();//start buffering to capture contents of excel document. $workbook->close(); $document = ob_get_contents(); ob_end_clean();//clean out this buffer, and turn off buffering. //should really look like: $document = $workbook->getRaw(); //or whatever name sounds good.

Comments

 [2009-11-29 23:00 UTC] cschmitz (Carsten Schmitz)
-Status: Open +Status: Verified