0% found this document useful (0 votes)
7 views3 pages

Oracle Smart Solution_ Applying Barcode in oracle forms and reports

The document provides a detailed guide on applying barcodes in Oracle Forms and Reports, including steps for configuration of jar files and creating procedures for barcode generation. It outlines the necessary configurations for both forms and reports, such as setting environment variables and editing configuration files. The author, Haythem Mohammed Mousa, also addresses common issues and provides a contact email for further assistance.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views3 pages

Oracle Smart Solution_ Applying Barcode in oracle forms and reports

The document provides a detailed guide on applying barcodes in Oracle Forms and Reports, including steps for configuration of jar files and creating procedures for barcode generation. It outlines the necessary configurations for both forms and reports, such as setting environment variables and editing configuration files. The author, Haythem Mohammed Mousa, also addresses common issues and provides a contact email for further assistance.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

1/30/25, 1:47 PM Oracle Smart Solution: Applying Barcode in oracle forms and reports

More Create Blog Sign In

oracle smart solution

Sunday, April 20, 2008 Blog Archive


► 2011 (6)
► 2010 (3)
Applying Barcode in oracle forms and reports
► 2009 (12)
Forms configuration
1- copy the jar file in the forms/java directory ▼ 2008 (6)
▼ April (6)
2-add the jar file name to archivjinit
Webutil Configuration for 10G
3-add the path jar to the registery of the windows (
forms_builder_classpath) General Contacts for all tables
4- add the full path of the jar in forms_classpath in the default.env file Include Graph Chart in your web
form
5-create file in the c:\temp 'image.jpg'
6-import the following two java class into your form ( Dynamic triggers and sequences
creation
oracle.apps.barcode.util.barcodeconstant --------------- barcodemaker)
How to get Screen resolution
7-create a procedure or function that generate the barcode
Applying Barcode in oracle forms
and reports
function xxx return Char is bcobj ora_java.jobject :=
barcodemaker.new();
myfilename varchar2(20); result varchar2(20);
barcodeData VarChar2(50) := :serialnumbertobeconverted;
About Me
begin
Haythem Mohammed Mousa
barcodemaker.setBarWidthInch(bcobj, 0.005);
barcodemaker.setBaseCodeData(bcobj,barcodeData); contact email
barcodemaker.setBarCodeType(bcobj,BarCodeConstants.BAR_COD [email protected]
E_128); View my complete profile
myfilename := barcodeData;
barcodemaker.setFullPath(bcobj, myFileName);
barcodemaker.renderBarCode(bcobj);
return(myfilename);
end;

https://oracle-smart-orbit.blogspot.com/2008/04/applying-barcode-in-oracle-forms-and.html 1/3
1/30/25, 1:47 PM Oracle Smart Solution: Applying Barcode in oracle forms and reports
The jar file name (oraclebarcode.jar)
-------------------------------------------------------------------------
Reports configuration
1- set the report_temp registery key as c:\temp
2-edit the windows environment variables -- add to the user variables
( REPORTS_TEMP) MUST BE CAPITAL to allow the report server to
access teh temp direcotry
3- copy the jar file to (home\reports\jilib)
4- edit your reports server con file add line to the tags and
classpath=full path in the jilib --- the full path must be in double
qoutation
5-restart the report server
6-include the path of the jar in the report class path registery key to
allow to the report builder to import the java classes
7- create new report and import the mentioned above (infroms
confgiuration) to your report , then create a formula column and set its
pl/sql code as follow:
function CF_1Formula return char is
bcobj ora_java.jobject := barcodemaker.new();
myfilename varchar2(20); result varchar2(20);
barcodeData VarChar2(50) := :empno;
begin
myFileName :=srw.create_temporary_filename;
barcodemaker.setBarWidthInch(bcobj, 0.005);
barcodemaker.setBaseCodeData(bcobj,barcodeData);
barcodemaker.setBarCodeType(bcobj,BarCodeConstants.BAR_COD
E_128);
myfilename := barcodeData;
barcodemaker.setFullPath(bcobj, myFileName);
barcodemaker.renderBarCode(bcobj);
return(myfilename);
end;

8- after that create a field and set its source to your formula and after
that set " read from file" to yes and "file format" to image
9- run your report
---
#######################################################
########
Posted by Haythem Mohammed Mousa at 11:45 PM

https://oracle-smart-orbit.blogspot.com/2008/04/applying-barcode-in-oracle-forms-and.html 2/3
1/30/25, 1:47 PM Oracle Smart Solution: Applying Barcode in oracle forms and reports
Labels: Haythem Mousa

1 comment:

Abdelrahman kholidi said...


in cannot find oracle .apps .barcode
into java class please help me

February 13, 2012 at 10:38 AM

Post a Comment

Newer Post Home

Subscribe to: Post Comments (Atom)

https://oracle-smart-orbit.blogspot.com/2008/04/applying-barcode-in-oracle-forms-and.html 3/3

You might also like