Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Help with Quantity barcode Post Reply Post New Topic
Author Message
Beso90
Groupie
Groupie
Avatar

Joined: 12 Jun 2014
Location: United States
Online Status: Offline
Posts: 48
Quote Beso90 Replybullet Topic: Help with Quantity barcode
    Posted: 26 Aug 2019 at 6:39am
Hello,

I have this label that I'm working on, and it has a Quantity field that I need to convert to a barcode

The way I'm converting to barcode is through a formula, and not through a right click on the field to "Change to barcode".
The formula reads as: "Q" + totext({V_LMINVTRY_PURCHASED.QUANTITY})
The "Q" is there because our WMS system requires a Q prefixed before any quantity field

But then the barcode shows as:




How can I fix the barcode to Not display the comma?



Thanks,
Basel

Edited by Beso90 - 26 Aug 2019 at 6:41am
IP IP Logged
kevlray
Admin Group
Admin Group
Avatar

Joined: 29 Oct 2009
Online Status: Offline
Posts: 1587
Quote kevlray Replybullet Posted: 26 Aug 2019 at 8:31am
The totext function has the ability to 'hide' commas.  I am assuming that the {V_LMINVTRY_PURCHASED.QUANTITY} field is a number.
 totext(x,y,z,z)
  • x is a Number or Currency value to be converted into a text string; it can be a whole or fractional value.

  • y is a whole number indicating the number of decimal places to carry the value in x to (This argument is optional.).

  • z is a single character text string indicating the character to be used to separate thousands in x. Default is the character specified in your International or Regional settings control panel. (This argument is optional.)

  • w is a single character text string indicating the character to be used as a decimal separator in x. Default is the character specified in your International or Regional settings control panel. (This argument is optional.)


IP IP Logged
Beso90
Groupie
Groupie
Avatar

Joined: 12 Jun 2014
Location: United States
Online Status: Offline
Posts: 48
Quote Beso90 Replybullet Posted: 26 Aug 2019 at 10:12am
It is a numeric field, yes.

I found that adding StringToCode39 before the original formula worked.. weird but I'll take it lol
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.031 seconds.