Regarding the US version of StackOverflow, I have an answer.
https://stackoverflow.com/questions/29026645/how-to-use-print-ready-functionality-in-phpexcel-library
See the Orientation and Paper Size:
section.
$objPHPExcel->getActiveSheet()
->getPageSetup()
->setOrientation(PHPExcel_Worksheet_PageSetup::ORIENTATION_LANDSCAPE);
© 2024 OneMinuteCode. All rights reserved.