Home » RADICORE development » Framework » PDF - horizontal line in title zone
Re: PDF - horizontal line in title zone [message #5731 is a reply to message #5730] |
Fri, 15 July 2016 04:13 |
AJM
Messages: 2368 Registered: April 2006 Location: Surrey, UK
|
Senior Member |
|
|
This works perfectly well in my development environment. I have adapted the "Invoice (PDF)" task in the EXAMPLE subsystem and produced the output shown in the attached image. I have 4 rows of data where the item id is 'Stuff', 'Other Stuff', 'Widgets' and 'Gadgets'. The data is shown in 3 lines: 1= standard data, 2= images and 3= a horizontal rule. In the attached image you will see that the data for 'Stuff' contains a label and 2 images, the data for 'Other Stuff' contains a label and 1 image. The data for the last 2 rows do not show any images at all, not even empty spaces where the images should be. I did this using the following code in the screen structure file:
// identify output for 1st additional zone
$structure['multi1']['fields'][1][] = array('field' => 'quantity', 'width' => 20, 'halign' => 'center', 'y_relative' => 1);
$structure['multi1']['fields'][1][] = array('field' => 'product_name', 'width' => 30);
$structure['multi1']['fields'][1][] = array('field' => 'product_desc', 'width' => 75);
$structure['multi1']['fields'][1][] = array('field' => 'product_price', 'width' => 25, 'halign' => 'right');
$structure['multi1']['fields'][1][] = array('field' => 'extended_price', 'width' => 25, 'halign' => 'right');
$structure['multi1']['fields'][1][] = array('field' => 'vat_percent', 'width' => 15, 'halign' => 'center');
// additional line to demonstrate 'ignore_if_empty' option
$structure['multi1']['fields'][2][] = array('field' => 'image_label',
'width' => '20',
'style' => 'noborder',
'y_relative' => 1,
'ignore_if_empty' => 'y');
$structure['multi1']['fields'][2][] = array('image' => '%%image_01',
'imagewidth' => 75,
'imageheight' => 95,
'style' => 'noborder',
'ignore_if_empty' => 'y');
$structure['multi1']['fields'][2][] = array('image' => '%%image_02',
'imagewidth' => 75,
'imageheight' => 95,
'style' => 'noborder',
'ignore_if_empty' => 'y');
// third line to put a horizontal rule across the page
$structure['multi1']['fields'][3][] = array('text' => '',
'width' => '100%',
'style' => 'rule',
'y_relative' => 1);
You need to compare this with your screen structure file so that you can spot the differences.
Tony Marston
http://www.tonymarston.net
http://www.radicore.org
|
|
|
|
|
PDF - horizontal line in title zone
|
|
|
Re: PDF - horizontal line in title zone
By: AJM on Wed, 15 June 2016 06:20
|
|
|
Re: PDF - horizontal line in title zone
|
|
|
Re: PDF - horizontal line in title zone
By: AJM on Thu, 16 June 2016 04:48
|
|
|
Re: PDF - horizontal line in title zone
|
|
|
Re: PDF - horizontal line in title zone
|
|
|
Re: PDF - horizontal line in title zone
By: AJM on Fri, 17 June 2016 05:22
|
|
|
Re: PDF - horizontal line in title zone
|
|
|
Re: PDF - horizontal line in title zone
By: AJM on Fri, 17 June 2016 11:48
|
|
|
Re: PDF - horizontal line in title zone
|
|
|
Re: PDF - horizontal line in title zone
By: AJM on Sat, 18 June 2016 06:09
|
|
|
Re: PDF - horizontal line in title zone
|
|
|
Re: PDF - horizontal line in title zone
By: AJM on Sun, 19 June 2016 05:02
|
|
|
Re: PDF - horizontal line in title zone
|
|
|
Re: PDF - horizontal line in title zone
By: AJM on Tue, 21 June 2016 04:41
|
|
|
Re: PDF - horizontal line in title zone
|
|
|
Re: PDF - horizontal line in title zone
By: AJM on Wed, 22 June 2016 05:25
|
|
|
Re: PDF - horizontal line in title zone
|
|
|
Re: PDF - horizontal line in title zone
By: AJM on Sat, 25 June 2016 05:01
|
|
|
Re: PDF - horizontal line in title zone
|
|
|
Re: PDF - horizontal line in title zone
|
|
|
Re: PDF - horizontal line in title zone
By: AJM on Mon, 04 July 2016 12:59
|
|
|
Re: PDF - horizontal line in title zone
|
|
|
Re: PDF - horizontal line in title zone
By: AJM on Thu, 07 July 2016 14:32
|
|
|
Re: PDF - horizontal line in title zone
|
|
|
Re: PDF - horizontal line in title zone
By: AJM on Fri, 08 July 2016 12:17
|
|
|
Re: PDF - horizontal line in title zone
|
|
|
Re: PDF - horizontal line in title zone
By: AJM on Mon, 11 July 2016 03:54
|
|
|
Re: PDF - horizontal line in title zone
|
|
|
Re: PDF - horizontal line in title zone
By: AJM on Wed, 13 July 2016 04:01
|
|
|
Re: PDF - horizontal line in title zone
|
|
|
Re: PDF - horizontal line in title zone
By: AJM on Thu, 14 July 2016 04:47
|
|
|
Re: PDF - horizontal line in title zone
|
|
|
Re: PDF - horizontal line in title zone
By: AJM on Fri, 15 July 2016 04:13
|
|
|
Re: PDF - horizontal line in title zone
|
|
|
Re: PDF - horizontal line in title zone
By: AJM on Sun, 17 July 2016 04:15
|
|
|
Re: PDF - horizontal line in title zone
|
|
|
Re: PDF - horizontal line in title zone
By: AJM on Mon, 18 July 2016 04:45
|
Goto Forum:
Current Time: Sat Nov 23 05:36:40 EST 2024
Total time taken to generate the page: 0.01502 seconds
|