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

How to Generate GS1-128 Barcodes in Oracle Xml or BI Publisher

I have successfully installed and implemented the IDAutomation Code 128 Barcode Font Package, which allows the creation of several different barcodes through Oracle BI Publisher (using the Java Barcode Font Encoder Class Library).

I have just come across a problem that I cannot seem to find the solution to - I need to create a GS1-128 barcode with an FNC1 character at the front.

Does anyone have any idea how I would go about creating a GS1-128 barcode?


Application: Oracle BI Publisher

09-16-14     10.1 year(s) ago    

  Report Abuse

 

James

Best Answer

Sorry for the inconvenience. This might be a bug in the encoding process.

If you would kindly replace any spaces (in the encoded text) with the  symbol (ASCII 194), you will see that the string is properly encoded:

ÍÊÄ+pH44f;dÂ{oÎ

Produces:
image

When generating GS1 symbols, IDAutomation recommends testing the result with the Barcode Decoder App which parses out GS1 data to verify proper encoding.

Posted 10.1 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 (8)
Thanks again! That worked perfectly.

Manny

Posted 10.1 year(s) ago

(0)
(0)
   Report Abuse
James,

Seems like I am not out of the woods yet. I am now experiencing a different issue with the GS1-128...

Here's a sample of a GS1-128 I am generating using IDACode128 that works great:

DataToEncode: 9611804020207027680114
Encoded String: ÍÊÄ+pH44f;d!.}Î
Barcode:

image

But here's a different sample that is generating an incorrect and unreadable barcode:

DataToEncode: 9611804020207027680091
Encoded String: ÍÊÄ+pH44f;d {oÎ
Barcode:

image

The same issue repeats itself with any barcode where the DataToEncode has "00" near the end of the string.

So this works:

9611804020207027680114

While this doesn't seem to work:

9611804020207027680091

Manny

Posted 10.1 year(s) ago

(0)
(0)
   Report Abuse
James,

First I want to say 'Thank You' for all your help.

Second, I want to apologize for having wasted your time. Although it was your last messages that led me to find the answer to my problem.

When you asked me to send you the encoded value I started the process to do that. It was then that I noticed that any changes I made to the Java code were not being transferred to Oracle. It turned out that we had to bounce the Oracle Output Post Processor in order for the Java code changes to take effect.

Once the Java code changes were in effect, I was able to generate the GS1 barcode using the IDACode128 method.

Again, thanks for your help.

Manny

Posted 10.1 year(s) ago

(0)
(0)
   Report Abuse
To encode GS1-128 properly, the IDACode128 (with ApplyTilde set to true) must be used.

Please give us the encoded text result returned from that function (not the barcode itself, just the string value), when you pass it the data ~2129611804020207027680169.

Posted 10.1 year(s) ago

(0)
(0)
   Report Abuse
Ok, I have performed three separate tests. Here are the results...

Test 1 - Printing a standard code128c barcode [worked great!]

DataToEncode: 9611804020207027680169
Method called: IDACode128c

Barcode:

image

Test 2 - Printing a GS1-128 barcode [did not work]

DataToEncode: ~2129611804020207027680169
Method called: IDACode128 (with ApplyTilde set to true)

Barcode:

image

Test 3 - Printing a GS1-128 barcode by updating the IDACode128c method [did not work]

DataToEncode: 9611804020207027680169
Method called: IDACode128c

Before printing, I modified the method as follows:

I added this line:
char C128_FNC1 = (char)202;

I modified this line:
Printable_string = C128_Start + C128_FNC1 + DataToPrint + C128_CheckDigit + C128_Stop + " ";

Barcode:

image

Posted 10.1 year(s) ago

(0)
(0)
   Report Abuse
Thank you for the links, but please give us an idea of how you are formatting your DataToEncode and post a barcode image for each DataToEncode example.

Posted 10.1 year(s) ago

(0)
(0)
   Report Abuse
I have tried using the Code128(DataToEncode, ApplyTilde) function, but that does not seem to work. What it does is create an unreadable barcode.

These are the exact Java classes I am using for encoding...

https://drive.google.com/file/d/0B_0eATwqKISQRjBUVF9kNW1VWlU/edit?usp=sharing

https://drive.google.com/file/d/0B_0eATwqKISQSVoxVkRjSUhTazA/edit?usp=sharing

Manny

Posted 10.1 year(s) ago

(0)
(0)
   Report Abuse
Given that the Code 128 barcodes have been implemented as described in the Oracle XML/BI Publisher tutorial (which is the extent of the implementation-support provided for Oracle XML/BI Publisher), the Java font encoders Code128(DataToEncode, ApplyTilde) function would be used, Apply Tilde must be set to 1 (TRUE), and the data must be formatted using the Tilde Method.

Posted 10.1 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