Gs1-128 Data Identifier 37 Dropping Decimal Point S’abonner

0
Avatar
Legacy Poster

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

2 commentaires

0
Avatar
Jenna Ingersoll
Modérateur
Actions pour les commentaires Permalien

Make sure you're using a barcode symbology that supports ASCII characters (Code 128, Code 39 - Full ASCII, QR Code, etc).

0
Avatar
Legacy Poster
Actions pour les commentaires Permalien

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.

Vous devez vous connecter pour laisser un commentaire.