- 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)
This commit is contained in:
dave 2007-12-30 07:28:06 +00:00
parent 827887a0fd
commit 5bcd7cd1e1

View File

@ -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')