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 Bookmark and Share
Siri

Printing SSCC Barcodes in Oracle Reports (Question 2)


Hi,
++++++++++++++++++++++++
Good day!!

We are having some issues with printing barcodes in our Oracle Reports.

Currently, we are using Oracle Reports 10g and we need to print SSCC number as a barcode in few reports. I am using Code 128 for code generation, but it has to be compliance with EAN 128, which I guess a subset of Code 128.

Do you have any solution for this?

Application: Oracle Report Builder 10.1.2.2.0
++++++++++++++++++++++++++++++++++++++++++


I have download .pll library and did some sought of testing. But still my POS are telling it follows code128 but not EAN128 which we need to go ahead.

In database it shows the SSCC number as '00393487540021203588. So i need show this as a barcode in pdf output given by oracle report and should be in EAN128 standard.

I'll show you how did i call expression within a formular column:
================================
function CF_3Formula return varchar is
begin
return IDAUTOMATION_LINEAR_NATIVE.Native_Code128
('~2120039348754002120358~m17',TRUE,8);

end;

Please help me to sought this.

Thank you.


10-09-14     1775 day(s) ago    

  Report Abuse

 

Ben

Best Answer

I believe the issue is related to the character set/ NLS_LANG. It needs American_America.UTF8. However, when this is set, certain high ASCII values such as the ~212 which encodes the FNC1 cannot be resolved. If you remove the NLS_LANG, it will not properly display the Unicode characters and will not produce a barcode. For GS1 encoding, IDAutomation recommends the Java Component which produces barcode images. Since this solution does not rely on the NLS_LANG setting, there should be no issues encoding the FNC1

Java Barcode Component for Oracle Reports

Posted 1762 day(s) ago

()
()
  Report Abuse
 
Find Interesting
 
Email to Others
 
Bookmark
 
Subscribe to Answer Alert
No comments yet.     Be the first to comment.
Other Answers (5)

Siri
Thank you very much for your valuable inputs. (Benjamin R. Johnson has helped me to do this)
The report is giving the expected results after done the modifications via reports developer and the report is working fine.
But once we move the report to Oracle Apps server, it is giving the following error.

“'cf_barcodeformula : Fatal PL/SQL error occured"
ORA -39565 : Message 39565 not found; Product=RDBMS facility=ORA”

What I did is:
Step 1: Add a new entry to REPORTS_CLASSPATH in apps server
Step2: Copied the given .JAR file into the physical path mentioned in REPORTS_CLASSPATH in the server.

We are using oracle apps server 10g and JAVA version is 1.4.2.
Do we need to modify any other file in the server or do a restart ?
Please advice.

Meantime , we are currently working on the no of users etc.. in order to buy your product and hopefully we will go for this.

Thank you.


Posted 1758 day(s) ago

()
()
   Report Abuse

Ben
Can you explain what is occurring? If there is an error, what is it?

If you are attempting to test SSCC18, ensure that you are setting the appropriate properties. The DataToEncode must still use ~212 and the SSCC18 check calculate must be ~m17 such as:
~21200393487540021203588~m17. The ApplyTilde/ setProcessTilde to True.

Java API

Posted 1761 day(s) ago

()
()
   Report Abuse

Siri
Hi,
I tried with this as well but still not generating as we expected. Do you have any sample .jsp or .rdf file with test coding ?
If so it is a big help.

For your info, this is the way I am calling the code inside a formular column and .rdf file is attached for the reference.

+++++++++++++++++++++++++++
function CF_1Formula return Char is
/*name of temp file*/
ImageFile VarChar2(250);
/*object containing barcode properties*/
BarcodeObject ORA_JAVA.JOBJECT;
/*object that creates jpeg of barcode based on BarcodeObject*/
BarcodeEncoderObject ORA_JAVA.JOBJECT;
begin
/*Get a temporary file name for the jpeg*/
imageFile := srw.create_temporary_filename();
/*Create the barcode object*/
BarcodeObject := databar.new();
/*Set the symbology*/
databar.setSymbologyID(BarcodeObject, databar.CODE128);
/*set the data to encode*/
--databar.setDataToEncode(BarcodeObject, to_char(:sscc_no));
databar.setDataToEncode(BarcodeObject, to_char('00393487540021203588'));
/*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;
++++++++++++++++++++++++++++++++++++++++++++++++++

Thank you.


Posted 1761 day(s) ago

()
()
   Report Abuse

Siri
Hello...
The check digit has to be 8 not 5...I have couple of email exchanged with your support team regarding this issue.
Appreciate if you could give me a solution asap.

Thank you

Posted 1763 day(s) ago

()
()
   Report Abuse

Ben
A response to your original inquiry is available here.

Code 128 is the barcode symbology that generates the EAN128/GS1-128 barcode standard. Learn more about Symbologies and Standards.

Based on your data, the check digit (SSCC18th digit) should be 5.

Can you provide your results of the scan? Can you attach a PDF of the barcode to support@idautomation.com ?

Posted 1774 day(s) ago

()
()
   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 2019 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