setOrientation() and LibreOffice

Topics: User Forum
Mar 1, 2011 at 6:14 PM

If you do this...

$objPHPExcel->getActiveSheet()->getPageSetup()->setOrientation(PHPExcel_Worksheet_PageSetup::ORIENTATION_LANDSCAPE);

...it's landscape in Excel and OpenOffice.org... but not LibreOffice.

This may be a LibreOffice issue, but landscape appears in XLSXs made outside PHPExcel and opened in LibreOffice..?

Sep 15, 2011 at 2:25 PM

This issue persists but only with XLSX -- XLS files are OK..?

Sep 15, 2011 at 2:36 PM

OK, it does appear to be a LibreOffice issue -- https://bugs.freedesktop.org/show_bug.cgi?id=40146