New User? Sign Up  |  Sign In  |  Help
Barcode support and
tutorials from IDAutomation
and the community.
Click for the BBB Business Review of this Computers Hardware, Software & Services in Tampa FL
Resolved Questions

Using the Java Component, certain Code 39 characters, such as the underscore, do not scan.

We are using LinearBarcode.jar in oracle and I noticed that when barcode is generated for value example A_B, it reads as AB when scanned and the underscore '_' is ignored. Please help

Operating System: LINUX

Application: Oracle EBS

05-21-13     9.9 year(s) ago    

  Report Abuse

 

Ben

Best Answer

The standard Code 39 character set does not include the underscore. It is part of Extended Code 39. To encode the underscore, set your symbology to Extended Code 39. Using the Symbology chart for Java, there are two options:

image

(1) Set the type:
barcode.barType = barcode.CODE39EXT;

In your example:
barcode.barType (BarcodeObject,barcode.CODE39EXT)

(2) Set the symbology id:
barcode.setSymbologyID = (1);

In your example:
barcode.setSymbologyID (BarcodeObject,1)


Set the scanner to read Extended Code 39/Full ASCII.

Posted 9.9 year(s) ago

(0)
(0)
  Report Abuse
 
Find Interesting
 
Email to Others
 
Bookmark
 
Subscribe to Answer Alert
No comments yet.     Be the first to comment.
Other Answers (7)
After setting scanner to full ASCII, the scanner identified underscore. Thanks for your solution

Posted 9.9 year(s) ago

(0)
(0)
   Report Abuse
In your case, you would use barcode.setSymbologyID (BarcodeObject,1);

Then you will want to make sure your scanner is set to full ASCII or else it will display the _ as %O.

Posted 9.9 year(s) ago

(0)
(0)
   Report Abuse
Do you mean set it as barcode.setSymbologyID (BarcodeObject,1);

Because if I set as barcode.setSymbologyID = (1); , it throws some error when I compile

After I have done the above change to barcode.setSymbologyID (BarcodeObject,1); I can see the %O coming into picture when scanned.

For example if value is A_B, it is read as A%OB

Posted 9.9 year(s) ago

(0)
(0)
   Report Abuse
Set the Symbology to 1 (which is the Code 39 Extended)

barcode.setSymbologyID = (1);

Posted 9.9 year(s) ago

(0)
(0)
   Report Abuse
Hi - I am not sure how exactly to set the below in my code .I have attached the piece of my code for generating the barcode. Could you please let me know or if you can palce it in exact place?

(1) Set the type:
barcode.barType = barcode.CODE39EXT;

(2) Set the symbology id:
barcode.setSymbologyID = (1);


Below is my code. Can you please help in placeing the above . i ma not a java expert

==========
BEGIN
imageFile := srw.create_temporary_filename();
-- -------------------------------------------------------------------------
-- Create the barcode object
-- -------------------------------------------------------------------------
BarcodeObject := Barcode.new();
-- -------------------------------------------------------------------------
-- Set the symbology
-- -------------------------------------------------------------------------
Barcode.setSymbologyID(BarcodeObject, Barcode.CODE39EXT);

barcode.setShowText(BarcodeObject,FALSE);
barcode.setCheckCharacterInText(BarcodeObject,FALSE);
barcode.setCheckCharacter(BarcodeObject,FALSE);
barcode.setTopMarginCM(BarcodeObject,0);
--barcode.setXDimensionCM(BarcodeObject,.10);
--barcode.setBarHeightCM(BarcodeObject,.10);
-- -------------------------------------------------------------------------
-- set the data to encode
-- -------------------------------------------------------------------------
Barcode.setDataToEncode(BarcodeObject, to_char(:resource_code));
-- -------------------------------------------------------------------------
-- Create the jpeg
-- -------------------------------------------------------------------------
BarcodeEncoderObject := BarcodeEncoder.new(BarcodeObject, 'JPEG',ImageFile);

-- -------------------------------------------------------------------------
-- If, for some reason, the barcode is not created, return null
-- otherwise, return the name of the barcode image jpeg that was created
-- -------------------------------------------------------------------------

IF ORA_JAVA.IS_NULL(BarcodeEncoderObject) then
return(NULL);
ELSE
return(ImageFile);
END IF;
END;



Posted 9.9 year(s) ago

(0)
(0)
   Report Abuse
we are using CODE39

Posted 9.9 year(s) ago

(0)
(0)
   Report Abuse
What barcode symbology/type are you attempting to generate?



Posted 9.9 year(s) ago

(0)
(0)
   Report Abuse
Email this question link to friends
You must enter an email address, if name is entered or vice-versa for each friend.
Friend #1 -
Friend #2 -
Friend #3 -
Friend #4 -
Friend #5 -
  Your comment on this question
  |         |  
bold  italic  underline  strike       big  small       superscript  subscript 
  Allows to add a link. Added links would only be converted to actual clickable link, when the domain of the link is white-listed by administrator.
Caption :
Link URL :
(Must starts with "http://")
Add  |   Cancel
  Allow to insert an image. Must be among the following file types - *.jpg, *.gif, *.png & *.bmp.
Image Url :   Upload New
(Image url must always starts with " http:// ")
Width : pixels
(Must not be greater than 450px. Enter 0px for no resize)
Add  |   Cancel
  Allow to insert YouTube video. Insert the video embed code.
Embed Code :
Add  |   Cancel
Up to 5000 Characters are allowed. Current Count: 0
  Your comment on this answer
  |         |  
bold  italic  underline  strike       big  small       superscript  subscript 
  Allow you to add a link. Added links would only be converted to actual clickable link, when the domain of the link is white-listed by administrator.
Caption :
Link URL :
(Must start with "http://" or "https://")
Add  |   Cancel
  Allow to insert an image. Must be among the following file types - *.jpg, *.gif, *.png & *.bmp.
Image Url :   Upload New
(Image url must always start with "http://" or "https://")
Width : pixels
(Must not be greater than 450px. Enter 0px for no resize)
Add  |   Cancel
  Allow to insert YouTube video. Insert the video embed code.
Embed Code :
Add  |   Cancel
Up to 5000 characters are allowed. Current Count: 0

You may answer and comment on any thread according to the Terms and Conditions.

 © Copyright 2021 IDAutomation.com, Inc., All Rights Reserved. Legal Notices.

 Barcode Fonts | Components | Scanners | Support | Contact Us
Training Videos on YouTube Join us on Google Plus Join us on LinkedIn Follow us on Twitter Like us on Facebook