forked from science-ation/science-ation
- 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:
parent
827887a0fd
commit
5bcd7cd1e1
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user