change the papersize to A4

Topics: Developer Forum, Project Management Forum, User Forum
Sep 27, 2013 at 2:44 PM
Hello,
i try change the papersize to A4, but is not works, what i do wrong?
$objPHPExcel->getActiveSheet()->getPageSetup()->setPaperSize(PHPExcel_Worksheet_PageSetup::PAPERSIZE_A4);
Thanks for your answer
Sep 27, 2013 at 3:23 PM
Test conducted with the writer Excel5 and Excel2007: the result is that expected. Without a call to the method displayed by Excel format is "Letter" (the default value of PHPExcel), with the call to the method format is A4.