Use this form set level rule to add a text label record to the AFP record list built by the MergeAFP rule. This rule is used in 2-up printing.
;AddTextLabel;;Text,XPos,YPos,Orientation,Font;
Parameter |
Description |
Text |
The text to be added. |
XPos |
The x coordinate of the text. |
YPos |
The y coordinate of the text. |
Orientation |
The optional text rotation (0, 90, 180, or 270 degrees). |
Font |
The AFP code font file name of the font to be used. Make sure the font has been defined in the font cross-reference (FXR) file and the font has already been used in a field, text label, or text area on that form set. In some situations, you may want to add a hidden field which uses the font you specify in this parameter of the AddTextLabel rule. |
Note | Enter the XPos and YPos values in absolute FAP coordinates. No shifting occurs, which lets you place the marks anywhere on the printable area of the paper. |
;AddTextLabel;;Preliminary,600,600,90,X0DACOBF;
This example tells the system to write the text, Preliminary, on each page beginning ¼ inch down from top of page and ¼ inch in from the left page edge. The system rotates the text 90 degrees and uses Courier bold 16 pitch as the font.
Here is another example:
;AddTextLabel;;=DAL("page_1.dal"),5740,4500,0,X0DATIN9;
;AddTextLabel;;=DAL("page_1_barcode"),1800,35200,90,X0BC4N9P;
This example includes this DAL script:
BeginSub Page_1
#page_cnt = #page_cnt
page_number = "*8080000001A00000" & #page_cnt & "S*"
#page_cnt += 1
Return(page_number)
EndSub
These rules tell the system to execute the DAL script named page_1 to get the dynamic data that will be placed on each page beginning 4500 FAP units down from top of the page and 5740 FAP units in from the left page edge using the Times Roman 9 pitch font.
Here is another example:
;AddTextLabel;;=DAL("page_1_barcode"),1800,35200,90,X0BC4N9P;
This example includes this DAL script:
BeginSub Page_1_barcode
Return(new_barcode_left)
EndSub
This rule tells the system to execute the DAL script named page_1_barcode to get the data will be placed on each page beginning 35200 FAP units down from top of the page and 1800 FAP units in from the left page edge rotated down 90 degrees. The dynamic data will be displayed as a 3x9 bar code.
© Copyright 2014, Oracle and/or its affiliates. All rights reserved. Legal notices.