CodePlexProject Hosting for Open Source Software
I wondering if it is possbile to access the data created by phpexcel as a data stream, such as
$excel_data = $objWriter->save();
I realize I could write the data to a file and then read the file, but I am trying to avoid that step.
No, I'm trying to capture the data without sending it to the browser.
Basic PHP (but not recommended because of the memory overheads)
$objWriter = PHPExcel_IOFactory::createWriter($objPHPExcel, 'Excel2007');
$excelOutput = ob_get_clean();
though I can't really see a business case for it... what do you plan on doing with the content once you've got it in a PHP string variable?
I have an application that sends out e-mails, including attachments. The source of attachment information is a variable in my code, which is then fed to my email function. I was hoping to add the ability to send an Excel attachment type if the user
chose to do so. Thus my desire to capture the data in a php variable.
Are you sure you want to delete this post? You will not be able to recover it later.
Are you sure you want to delete this thread? You will not be able to recover it later.