Generating pdf using phpexcel in windows

I get a pdf and excel report using the phpexcel library. Everything works fine on Ubuntu, but on Windows, a pdf file is not generated, only an excel file is created (an empty pdf version is created). Is there a memory limit in php on Windows that doesn't allow you to create a PDF file ... if so, what is the solution?

+3
source share
1 answer

Try putting these lines in your code

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

Please take a look at this link. Maybe this can help you.

http://phpexcel.codeplex.com/discussions/429280

0
source

All Articles