Print Page | Close Window

Help with Quantity barcode

Printed From: Crystal Reports Book
Category: Crystal Reports 9 through 2020
Forum Name: Technical Questions
Forum Discription: Formulas, charting data, Crystal syntax, etc.
URL: http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=22816
Printed Date: 28 Apr 2024 at 10:32pm


Topic: Help with Quantity barcode
Posted By: Beso90
Subject: Help with Quantity barcode
Date 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



Replies:
Posted By: kevlray
Date 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.)




Posted By: Beso90
Date 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



Print Page | Close Window