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 create 1D Barcodes in BI Publisher


What are the requirements and steps to create barcodes in BI Publisher? I have read Tim Dexter's Advanced Barcode Support but I do not understand it.

TOOLS AND REQUIREMENTS

1D Java Barcode Font Encoder (Developer License and up) - the Demo download is for testing purposes.
BI Publisher Desktop/Analytics Desktop
• Microsoft Word
• barcodeutilLinear.java file. Download the IDAutomation_BIPublisher_Linear.zip
For Universal Fonts, use the Download the IDAutomation_BIPublisher_Universal.zip
• Collection of Jar files from the jlib folder of the BI Publisher Desktop install.


1D Barcodes include:
Code 128
Code 39
Code 93
Databar
Intelligent Mail Barcode (IMB)
Interleaved 2 of 5
MSI
UPC and EAN
Universal Fonts


Application: BI Publisher, Word

10-14-20     3.5 year(s) ago    

  Report Abuse

 

Ben

Best Answer

This IDAutomation user guide explains how to produce barcodes in BI Publisher for Oracle developers who use E-Business Suite. Only developers with BIP report design, XML, and Java experience must perform the solution. Only developers with BIP report design, XML, and Java barcode encoder experience must perform the solution. IDAutomation only supports the Java barcode encoder available through our company. To troubleshoot barcode generation issues in BIP, ensure the Java barcode encoder performs in a stand-alone application (an example is included in the product). If the Java barcode encoder performs in a stand-alone application but does not function in BIP, contact Oracle Support for more information.

The Java barcode encoder solution works with Oracle E-Business Suite (EBS) to print barcodes in BI/XML Publisher Reports which may be generated from the E-Business Suite concurrent program.


-INSTALLATION-

1. Install all BI Publisher requirements (Bi Publisher, Microsoft Word).

2. Purchase, download, extract, and install the 1D barcode font package (Developer License or greater) demo or purchased version.

3. The 1D font package (Developer License or greater) includes the Java barcode font encoder (stored in a .jar file) within the Developer Tools ZIP.

-SET UP JAVA CLASS-

4. Download the Java Font Encoder Class demo or extract the Java barcode font encoder from the Developer Tools download from the store purchase.
image

5. Locate the IDAutomation_LinearJavaFontEncoder.jar and set up the file in your environment.
image

NOTE: Prior to implementing the solution in BI Publisher, confirm that you can create a Linear/1D barcode in a stand-alone application/project. If not, ensure that the jar file is part of the classpath within your Environment Variables.

-CREATE BARCODEUTIL.CLASS-

6. Download the IDAutomation_BIPublisher_Linear.zip (for Universal Fonts download IDAutomation_BIPublisher_Linear.zip) . It includes the barcodeutilLinear.java (Universal - barcodeutilUni.java) and dependencies (Logger.class and XDOBarcodeEncoder.class) for creating the barcodeutil class.
image
image

7. The encoder section of the tutorial provides an example of the parameters. Update the parameters in the .java file based on the barcode requirements:


Linear

/* Import the idautomation encoder class */
import com.idautomation.*;

LinearFontEncoder FontEncoder = new LinearFontEncoder();
return FontEncoder.Code128(DataToEncode);

Class[] clazz = new Class[] { "".getClass() };
ENCODERS.put("linearbarcode",mUtility.getClass().getMethod("linearbarcode", clazz));

Universal:
/* Import the idautomation encoder class */
import com.idautomation.universalencoder.*;

Universal UniFontEncoder = new Universal();
return UniFontEncoder.IDAutomation_Universal_C128(DataToEncode);

Class[] clazz = new Class[] { "".getClass() };
ENCODERS.put("unibarcode" , mUtility.getClass().getMethod("unibarcode" , clazz));


8. Compile the barcodeutilLinear.java file to create the barcodeutilLinear.class.

-SET UP JAR FILES-

9. Access the jlib path and reference the listed JAR files in the classpath:
image
- xdocore.jar
- xmlparserv2.jar
- collections.jar
- aolj.jar
- share.jar
- xdoparser.jar
- jewt4.jar
- 18nAPI_v3.jar



10. Place the barcodeutilLinear.class/barcodeutilUni.class into the barcodejar.jar.

11. Copy the IDAutomation_LinearJavaFontEncoder.jar and the barcodejar.jar to the jlib folder within the Template Builder for Word.

12. Place the JARs into the RTF2PDF.jar, located in the jlib folder.

13. Make a backup of the RTF2PDF.jar file.

14. Open the RTF2PDF.jar using Winzip or 7-zip and access the META-INF directory. Open and edit the MANIFEST.MF to include the jars at the end of the classpath list:

Manifest-Version: 1.0
Class-Path: ./activation.jar ./mail.jar ./xdochartstyles.jar ./bicmn.jar ./jewt4.jar
./share.jar ./bipres.jar ./xdoparser.jar ./xdocore.jar ./xmlparserv2.jar
./xmlparserv2-904.jar ./i18nAPI_v3.jar ./versioninfo.jar
./barcodejar.jar ./IDAutomation_LinearJavaFontEncoder.jar
Main-Class: RTF2PDF


-SET UP TO RENDER BARCODE-

15. To render the barcode in a PDF report, reference the font within a config file in the BI Publisher config folder. Open the xdo example.cfg file located:
image

16. Add a font entry for IDAutomationC128L.ttf. (or other IDAutomation font used).
image


17. In Word, access the BI Publisher file. Double-click the field to barcode and choose Add Help Text to open the Form Field.

18. In the Status Bar tab, enter the first command:
<?register-barcode-vendor:'ENCODER WRAPPER CLASS'; 'ENCODER NAME'?>
image

19. In the Help Key (F1), enter the second command:
<?format-barcode:DATA_TO_ENCODE;'ENCODER_METHOD_NAME';'ENCODER_NAME'?>
image

20. To confirm the Java barcode font encoder encodes the data, view the document (PDF,RTF,HTML):
image

21. Return to the project and select the IDAutomationC128L font from the font list. View the document.
image

Posted 3.5 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.

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