Hello everyone.
I need to print barcode labels on a printer.
I have created a "PDF" file.
The problem is that I want to print a certain number of each barcode.
For example, code 10078 prints 10 labels, code 28004 prints 5, etc.
I have a table with the barcode and the number of labels.
As a solution, it occurred to me to create a LIST with each code and repeat that code as many times as necessary.
How can I create in the PDF a list of an element that is repeated as many times as I want?
Thanks for your cooperation.
Assume you have some table that has at least as many rows as the max number of repeats of a single barcode. That table really doesn't matter, just the number of rows. In your PDF template, you can do something like this:
<<START: TOP( table[id] , LOOKUP( thisrow.barcode , barcode_count_table , barcode , count ) )>>
<<thisrow.[barcode]>>
<<END>>
Only 1 tag appears...
This is the table. I use 1 row for each label
How did you set up your template?
For now, I've only put the code you told me...
I don't know yet how I'm going to do it.
I'm trying things.
My "code" was not a full solution, it was a technique to be implemented within the full solution. You perhaps misunderstood something. If you share your template, I could hopefully see where you have misunderstood.
User | Count |
---|---|
15 | |
11 | |
10 | |
8 | |
3 |