Using Template Selectors

You can use in BarTender to conditionally print different based on the data that is read from a database or entered into a .

For example, suppose that you are printing membership cards for "gold" members, "silver" members, and "bronze" members. Instead of requiring you to load a different for each membership type, BarTender can use a template selector to automatically select the preconfigured "gold," "silver," or "bronze" template to print, based on specified data conditions.

Template Selectors

A template selector is analogous to a folder that contains the templates that you use to conditionally print your items. You create a template selector for each conditional statement and then add templates to the template selector that capture the different data conditions that apply to that statement. When you run the print job, the specified data condition determines which template is printed.

In the example of the gold, silver, and bronze memberships, you want to print only one card for each person who applies for a membership, and you want the card template that is printed to vary depending on the membership type that the member purchases. To do this, you create three templates (one for each membership level) and then add them to the template selector. At print time, the template that is printed depends on the membership level that is selected by the print operator.