Label Templates
If you need to print labels during batch fulfillment processing, you will need to define a special letter template file to be used for the labels. (You will need one file for each type of label that you intend to use.) For more information, see Fulfillment Batch Processing Overview.
This topic discusses the general procedure for defining a letter template file that can be used for labels.
The following steps will walk you through the process of creating all the components needed for a sample label. Once you understand the steps involved, you should then be able to adapt the process for your specific needs.
Step 1: Define Standard Paragraphs
You will define four paragraphs to use on the label. This section assumes that you are already familiar with the process of Defining Standard Paragraphs.
Standard Paragraph ID: To Addr
Repeat Table: None
Paragraph Contents:
[send_address.full_name][special.newline][send_address.address1][special.newline][send_address.address2][special.newline][send_address.address3][special.newline][send_address.full_city]
Standard Paragraph: Return Addr
Repeat Table: None
Paragraph Contents:
Emplifi Fulfillment Center[special.newline]4400 Easton Commons, Ste 250[special.newline]Columbus, OH 43219
Standard Paragraph: Label Info
Repeat Table: None
Paragraph Contents:
Case [case.case_id] [letter.letter_seq] [special.include.Label Enc]
Standard Paragraph: Label Enc
Repeat Table: Assoc. Enclosures
Paragraph Contents:
[special.nbsp][case_enclosure.enclosure_code.default(" ")]
Step 2: Define a Letter Template File
The next step is to define an HTML template file that mimics the layout of your labels. This section assumes that you are already familiar with the basics of defining HTML letter templates. If not, see Letter Template Files.
In this example, we are defining a layout for a type of label that contains three labels per page. Note the following information about the HTML document shown below:
The file should be saved as "testlabel.htm."
The "LabelsOnPage" attribute in the BODY tag defines the total number of labels that are on a single page. Note that we do not have to tell the system how many labels go down and across, as that is controlled explicitly by the layout of the HTML file.
Bookmarks must be of the following format: <BK_bookmarkname_labelnumber/>. So, <BK_BK01_1/> is the first bookmark for the first label on the page, <BK_BK01_2> is the first bookmark for the second label on the page, etc.
This sample assumes three labels arranged vertically on a page. For example, if your page had three columns with four labels each, you would need to set up your HTML tables appropriately. (This is easily accomplished with most HTML editors.)
Getting the HTML definition to match the layout of your label sheets will probably require some trial and error. Generally, playing around with the cell border width attributes and table margins will be most useful in lining up your data.
Remember to include any font information (type, style, size, color, etc) directly in your layout to achieve the professional look you want.
<HTML>
<BODY LabelsOnPage="3">
<TABLE BORDER="1">
<TR><TD>
<TABLE>
<TR><TD><BK_BK01_1/></TD></TR>
<TR><TD><BK_BK02_1/></TD></TR>
<TR><TD><BK_BK03_1/></TD></TR>
</TABLE>
</TD></TR>
<TR><TD>
<TABLE>
<TR><TD><BK_BK01_2/></TD></TR>
<TR><TD><BK_BK02_2/></TD></TR>
<TR><TD><BK_BK03_2/></TD></TR>
</TABLE>
</TD></TR>
<TR><TD>
<TABLE>
<TR><TD><BK_BK01_3/></TD></TR>
<TR><TD><BK_BK02_3/></TD></TR>
<TR><TD><BK_BK03_3/></TD></TR>
</TABLE>
</TD></TR>
</TABLE>
</BODY>
</HTML>
Step 3: Define a Standard Letter
The last step is to define a standard letter for the labels. This section assumes that you are already familiar with the process of Defining Standard Letters.
Standard Letter ID: Test Label
Letter Format: HTML Text
Standard Letter File Name: testlabel.htm
Your letter definition contains the following three paragraphs:
Bookmark | Seq | Standard Paragraph ID |
---|---|---|
BK01 | 1 | Return Addr |
BK02 | 1 | To Addr |
BK03 | 1 | Label Info |