Script To Enable Barcode 追蹤

0
Avatar
Legacy Poster

Hello, We have a customer request that would require us to print a bar code out on an existing field on our tags. These fields are usually test or numbers without a bar code. What we would like to do is have the Bartender system print bar codes on these specific locations on the tag if the customer field has a certain text string in it. For example: If the customer name is "MIT" then print out a code 128 bar code in these two fields on the same tag if the data is available in the text file. This data should be generated from our ERP if it is available. Thanks, Jeff

4 意見

0
Avatar
Michael Toupin (mtoupin
評論操作 永久連結

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
Avatar
Legacy Poster
評論操作 永久連結

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
Avatar
Legacy Poster
評論操作 永久連結

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
Avatar
Fernando Ramos Miracle
版主
評論操作 永久連結

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.

登入寫評論。