From 5bcd7cd1e154983c41b1e10e5205f9d4fd36f945 Mon Sep 17 00:00:00 2001 From: dave Date: Sun, 30 Dec 2007 07:28:06 +0000 Subject: [PATCH] - Obey the pagesize settings when generating actual reports, not just labels. This makes landscape reports work. This still ignores the margins (just like regular reports ignore the margins on 8.5x11 pages anyway) --- admin/reports.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/admin/reports.inc.php b/admin/reports.inc.php index 45a4412..0861e48 100644 --- a/admin/reports.inc.php +++ b/admin/reports.inc.php @@ -507,10 +507,11 @@ foreach($report_stock as $n=>$v) { break; case 'pdf': case '': /* FIXME: handle landscape pages in here */ + $label_stock = $report_stock[$report['option']['stock']]; $rep=new lpdf( i18n($config['fairname']), i18n($report['name']), $_SERVER['DOCUMENT_ROOT'].$config['SFIABDIRECTORY']."/data/logo.gif"); - $rep->newPage(); + $rep->newPage($label_stock['page_width'], $label_stock['page_height']); $rep->setFontSize(11); $gen_mode = 'table'; if($report['option']['allow_multiline'] == 'yes')