|
LabelControl is a control to drop on a report detail that configures dynamic sized address labels. Now includes a salutation line and more expression prompts to build your own input. You can control label size and fonts from the included Labels file.
Create a report with just a detail band, and drop in the Label control. If you are using the included Labels file, add it as other files first, and it will autofill the template prompts for the label sizes and fonts. A C55 txd file is included with the file definition, as well as the tps file. A C55 TXA (abc) file is also included with the Label browse and update form that you can import into your procedure. This same label file will work for both the barcode labels, and mailing labels included in this template set. See your directories under 3rdParty/Examples/BoTpl for the included files and *.tx?'s
Size the detail accordingly, and it will be dynamically resized as needed from the Labels file.
Set your filters, ranges, etc to limit the printing of the labels. Then fill in the Template prompts.
Select the name of the Detail band from the drop down list, and the name of your Label size lookup procedure from the procedure dropdown list. This will autodefault to BrowseLabels if you have included the procedures in the txa file. Then click on the button For the Label Data Setup.
Select the data to be included in the Label Fields. Note: Three fields are required, the First Name field, and this can include the entire name, because the following 2 fields are preformatted add added to the first line to create a name field if you are setup that way. Address 1 Field is required, and City Field is required. The PF fields format the additional fields if you have them stored separate in the file structure. You can, however use the label anyway you want, and build your own expressions, as the prompts are EXPR fields.
OK this button, and then go to the Label Size Setup Button of Prompts.
They will be auto filled if you have used the Labels file included with the template.
Otherwise fill in the prompts with the data fields from your label size file.
Observe the results.
|