php - PHPExcel does not set the papersize correct in excel 2007 -


solved
(solution explained under question)

i trying change page setup xlsx file phpexcel.
whenever change papersize, results in user defined size wrong width , height.

this do:

$sheet->getpagesetup()->setpapersize(phpexcel_worksheet_pagesetup::papersize_a3); $sheet->getpagesetup()->setorientation(phpexcel_worksheet_pagesetup::orientation_landscape); 

in xls file, works correct.
in xlsx file not.

i searched on google , on forum not find it.
doing wrong?

i testing in libre office (i checked on excel has same problem)

the result of xlsx file: this result

let me know if need more information.

thanks in advance!

solution:

it libreoffice bug. problem libre office want attribute printer settings. if not defined, automatically takes printer settings.

it libreoffice bug. problem libre office want attribute printer settings. if not defined, automatically takes printer settings.


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -