Gs1-128 Data Identifier 37 Dropping Decimal Point
Hi,
I'm trying to create a label using VBA from Excel, and my customer wishes to use the application identifier 37 (Number of units contained) to identify a weight held in tonnes, in a format #0.000. I'm passing the variable as a string in this format, but when it prints on the label, the decimal point is being removed, so, for example, a weight of 0.900 is displaying and scanning as 0900.
I've defined the field in Bartender as a Number with Precision set to Fixed at 3 decimal places (see the attachment) [attachment=1926:QuantityDefinition.PNG], and passing it in the following way:
btFormat.SetNamedSubStringValue "Quantity", Format(dblQuantity, "#0.000")
Can anyone offer any help as to what I am doing wrong?
Thanks and regards.
Cliff
-
Make sure you're using a barcode symbology that supports ASCII characters (Code 128, Code 39 - Full ASCII, QR Code, etc).
0 -
I'm using GS1-128, which supports ASCII. It will print periods OK in other fields of the barcode so I don't think it's that.
0 -
We are facing same problem please give solution,Gs1-128 Data Identifier 37 Dropping Decimal Point
0 -
AI 37 is a quantity/count string so how can there be decimal places in it?
Even with say a 31 (or really 310X), for a weight, there is no decimal point encoded instead the number of decimal places is shown via the last digit so 100.15 would be displayed as (3102)010015 in the barcode.
I could be wrong but I do not think a decimal point is a valid character in GS1 barcodes and they are all dealt with like the above
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
4 Kommentare