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  


 [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