Seeking Help to Integrate Label Counting Feature into Printing Process
Greetings,
I'm currently working on a project where I need to track the number of labels I print and display this count on the labels themselves during printing.
In my setup, I've successfully integrated a field from the data source named "Task Field Print", labeled as "Total Amount of Pages". This field provides me with the total number of labels printed thus far.
However, I'm facing a challenge with my printing process. I'm using two types of templates concurrently: the Single template and the Variable template.
The Single template prints only once, typically at the end of the printing process. On the other hand, the Variable template includes a counter that can be set to a specific number, allowing for multiple prints.
Now, here's where I'm seeking assistance. I want to extract the count of labels printed exclusively from the Variable template and integrate it with the Single template. Essentially, I need to subtract one from the total number of prints to achieve this.
Unfortunately, I lack confidence in my coding abilities, and I'm unsure about the appropriate placement of the required code to accomplish this task. I'm hopeful that someone with expertise in this area can provide me with guidance on how to proceed.
Thank you in advance for any assistance you can offer.
Best regards,
Friso
-
Peter Thane
★ BarTender Hero ★
Are the two templates both part of the same label format or different formats?
0 -
Friso Janssen
★ BarTender Hero ★
Hello Peter,
For one label, the variable "label" represents the labels on the products, while the single template is for the label on the box.
I have added some pictures to make it more clear.
0 -
Peter Thane
★ BarTender Hero ★
Where do the values "Task Field Print" and "Total Amount of Pages" come from?
Are you trying to print X product labels plus one box end label with each print run and if so is the X value stored in your database?
0 -
Friso Janssen
★ BarTender Hero ★
Hello Peter,
In the first picture, you will find the "Task Field Print" and "Total Amount of Pages".
I have a form where if I input the value 5, it will print 5 variable labels and one normal label. Refer to the second picture below.
The result will be displayed in picture 3.
I appreciate your help!
0 -
Peter Thane
★ BarTender Hero ★
The simplest way would be to add a field either that is set not to print or is off the side of your label that increments by one each time template 1 is printed. Set this to reset each print job but for ease also make this a Named Data Source. On Template 2 link the count labels field to this named data source to get the last value printed
0
Vous devez vous connecter pour laisser un commentaire.
Commentaires
5 commentaires