Records Per Item Example

You can use the Records Per Item property page of the Database Setup dialog to print multiple database records on a single printed item and to specify how you want those records to be grouped on your printed items. Consider the following example:

Suppose you have a text database called products.txt. It contains thirteen records that consist of a list of products and the region from which the product originated, as follows:

Product,Region

Knife,Western Region

Dish Towel,Eastern Region

Coffee Mug,Southern Region

Fork,Western Region

Spoon,Western Region

Tongs,Western Region

Hot Pad,Eastern Region

Dinner Glass,Southern Region

Wine Glass,Southern Region

Spatula,Eastern Region

Tea Cup,Southern Region

Juice Glass,Southern Region

Tumbler,Southern Region

You want BarTender to print a single item for each region that has all products from that region printed on the item. The following procedures describe how to create the database connection, enable the printing of multiple records per printed item, and add the records to your .

Next, set the maximum number of records per item, and then specify the Break when field changes and Combine multiple records into a single field options.

Next, add the records to your template, and then format them the way that you want them to appear.

When you print your document, the three printed items appear similar to the following:

Southern Region

Coffee Mug, Dinner Glass, Wine Glass, Tea Cup, Juice Glass, Tumbler


Eastern Region

Dish Towel, Hot Pad, Spatula


Western Region

Knife, Fork, Spoon, Tongs

In this example, three items are printed because there are three regions in the database and all the products for each region fit on the printed item. The maximum number of products per printed item is set to six, so when a region exceeds six products, the additional products for that region will be printed on a separate item, increasing the number of printed items. Similarly, if another region is added, an additional item will be printed.