How can I do it so that, from the moment the Excel is downloaded and I open it, the orientation of the page is horizontal?
I tried to put this from the beginning of the code, but it does not work.
$objPHPExcel->getActiveSheet()->getPageSetup()->setHorizontalCentered(true);
$objPHPExcel->getActiveSheet()->getPageSetup()->setVerticalCentered(false);