Script To Enable Barcode
-
If you are using BarTender 10.1 you can use conditional printing on the barcodes to have them only print if the data object meets the criteria that you're specifying. Double-click on the barcode, select the object name on the left, than hit the box next to 'print when'. Then select the field, change the operator, and specify the criteria.
If you're using any older versions, you would have to write vb scripting to make that occur. Basically you need to set the barcodes to "" if they don't meet the criteria.
0 -
To upgrade from 10.0 to 10.1 is this a disruptive process or will the new version install over what I already have? We are a 24/7 shop and Bartender is under constant use. One other thing I was wondering about is if I could use the conditional template to detect if a field had a certain customer ID in it. If it did then the system would print a totally different tag template just for that tag. Either way I think I would still have to write a VB script if I stayed on version 10.0 correct?
Thanks,
Jeff
0 -
I just just though of something that might work a little better for us. I use a certain BTW file for printing shipping labels. Rather then modifying a certain file for the sake of one customer with a VBScript could I use the Bartender conditional templates to look at the database field and print a completely different BTW file if the field meets a certain regular expression for example customerfeild = MIT. I am interested in some examples if these can be provided. I have not been able to find anything as of yet to point me in the right direction.
0 -
Not sure how helpful it would be, but you can surely open a label "within" a label. I'm attaching a very simple example where a script consults the value of a named data source and, if it's not empty, it launches a print command using the contents of that data source as the label name in the "OnPrintJobStart" event:
If LabelName <> "" Then objShell.Run "bartend.exe /af=" & Format.NamedSubStrings("LabelName").Value & " /P /X" End If*You'll need to set the specified label in the same folder as the one running, or specify the full path.
Also note that this is only meant as a sample on how this would work.
Regards.
0
Please sign in to leave a comment.
Comments
4 comments