Content-Length

Topics: User Forum
Nov 15, 2011 at 12:09 PM

Is there a possibility the get the size of an excelfile without saving it to disc before?

I generated a simple excelsheet an send with

$objWriter = PHPExcel_IOFactory::createWriter($objPHPExcel, 'Excel5');
$objWriter->save('php://output');

to the browser. I like to set the "Content-Length" header, but I can't find any information about the size of the generated excel.

Is there anybody who solved this problem?

Or is the only way to get the size by saving it to disc before??

Thank you.

Stephan