Serialization - Specify Start and End Numbers
Hello,
I have a label where some start info is added, then serialisation is used to append 01 - 10 to the end.
Is there a way to select the start and end values, so I could instead select a different range to print, i.e. 04 - 06 to just print those 3 labels?
I found I can set the Start using a Form input to the Serialization control, but I can't see a way to select an end, instead the print job just loops through back to the start and still prints 10 labels, just with a different starting number.
Thanks,
Paul
-
Peter Thane
★ BarTender Hero ★
It sounds like you need to do something like this:
As you can see this is achievable but you just need to do a bit of jiggery pokery to do it.
Please note, the fields shown above do not need to be printed on the final label, they just need to be referenceable and so these can be set to "Do Not Print" objects, or more simply, dragged off the side of the printed area in the BarTender Designer template view screen.
To do this
- Add a text label onto the label and set the Type to Numeric to zero decimal places.
- Copy and paste this field a second time onto the label.
- Go into the Properties of these two fields and on the Data Sources screen click on the button to the right of the Name box and give each of these fields a name, I called mine StartNo and EndNo
- Select the Data Entry Form and add two Number Input boxes and link each of these to the Named Data Sources above.
- Back on the Template view add another Text field object and give this a name (I called mine PrintQTY).
- Make this field a Visual Basic Script type and set it to an Event Controlled Script object and click on the Edit button
- In the OnAutoSelectedEvent box, set the code to Value = "1" and then click on the OnPostPrompt option from the column on the left
- In the OnPostPrompt entry area add the following code double clicking on the Named Data Sources from the list on the right after tying the Value = and Value1 = parts
Value = Format.NamedSubStrings("EndNo").Value
Value1 = Format.NamedSubStrings("StartNo").Value
Value = Value - Value1 + 1
- Back on the Template View add another VB Script>Event Controlled Script Object as above but this time for the OnPostPrompt just add the line
Value = Format.NamedSubStrings("StartNo").Value
(again clicking on the Named Data Source to add that part)
- Once the VB for this field is set, click on the Transforms tab for this field and set it to Serialise incrementally and to Reset for Each Job.
- Finally go to the File>Print screen and click on the button to the right of the Serial numbers box, choose the Set By Data Source option and click on the name button and select the PrintQTY field to link the number of labels to that value
I hope this helps
0 -
Paul Dennison
★ BarTender Hero ★
Absolutely brilliant, thank you so much Peter, this has solved the issue.
0
Please sign in to leave a comment.
Comments
2 comments