Multiple Templates Within Same Print Job
I have a BarTender document with 2 templates, and a user input form to capture the number of labels needed. Both templates need to be printed the same number of times. I have the basic functionality working, but I have been trying to find a way to collate the labels, so far to no avail.
Let's say a user submits a quantity to print of 3. Currently, the templates print in alternating fashion. Instead the desired printing pattern I'm trying to achieve is -
Template1, Template1, Template1, Template2, Template2, Template2
I haven't been able to achieve this with the standard settings available in BarTender. I've gone down various routes with VBScript but I'm not skilled enough in how Event Scripting works to get the results I'm chasing. I think my best bet might be to use 2 layers on one template instead of separate templates, and hide the layers conditionally, but so far have not been able to get it to work.
Any input or help would be greatly appeciated!
-
pthane
★ BarTender Hero ★
There are two ways you could achieve this:
1. Log the printed data (plus any that is needed for template 2 only) into a text file as template 1 is printed and then set up an Integration to use the output as both a trigger file and the database to automatically print the 2nd label. You could use an Action to output the data or else set up job logging but that would mean that all the labels create a log and so you would have to create a way to handle/delete unwanted output files.
2. Use an action to print template 2 when template 1 prints. I would suggest adding the action to a Data Entry Form rather than make it Document Level. You could combine this with the Action in 1. above that creates the output file to make a series of Actions to trigger when you print the first label type
0
Please sign in to leave a comment.
Comments
1 comment