473,386 Members | 1,943 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

I Want Know How I Can Attach Bar Code Device With Oracle Form Bulider Using Developer

I Need The Code That Used To Attach Bar Code Device With Form Builder Block Using Developer 6i:
For Example :
I Want To Read Product_no Using Bar Code Device To Display The The Product_no And It Is Description And The Sales_price Fields From The Product Table To The Invoice Table So I Need Your Help In That And I Will Be Very Thanful To You.
Feb 11 '08 #1
2 4611
I Need The Code That Used To Attach Bar Code Device With Form Builder Block Using Developer 6i:
For Example :
I Want To Read Product_no Using Bar Code Device To Display The The Product_no And It Is Description And The Sales_price Fields From The Product Table To The Invoice Table So I Need Your Help In That And I Will Be Very Thanful To You.
create barcode device using java language it much easier then use it in the forms using java beans tool.


In 9i, you could also use the barcode java bean for this.

http://otn.oracle.com/products/repor...per/index.html
//
Expand|Select|Wrap|Line Numbers
  1.  
  2. function CF_2Formula return Char is
  3. myfilename varchar2(500);
  4. result varchar2(20);
  5.  
  6. /* modified to include the value of the data element we're barcoding */
  7. barcodeData VarChar2(50) := :barcode_med_id;
  8. begin
  9.  
  10. /* removed srw.create_temp_filename reference because it is not needed - you merely reset the variable four lines later */
  11. -- myFileName := srw.create_temporary_filename;
  12. barcodemaker.setBarWidthInch(globals.bcobj, .005);
  13. barcodemaker.setBaseCodeData(globals.bcobj,barcodeData);
  14. barcodemaker.setBarCodeType(globals.bcobj,globals.barcode_to_use);
  15.  
  16. /* modified the following line to strip off the first and last digits and add a .jpeg extension, which is used to clean the bazillion generated image files off the server every day */
  17. myfilename := substr(barcodeData, 2, length(barcodeData) - 2) || '.jpeg';
  18.  
  19. barcodemaker.setFullPath(globals.bcobj, myFileName); 
  20. barcodemaker.renderBarCode(globals.bcobj);
  21. return(myfilename);
  22. end; 
  23. //
  24.  
Feb 12 '08 #2
I Need The Code That Used To Attach Bar Code Device With Form Builder Block Using Developer 6i:
For Example :
I Want To Read Product_no Using Bar Code Device To Display The The Product_no And It Is Description And The Sales_price Fields From The Product Table To The Invoice Table So I Need Your Help In That And I Will Be Very Thanful To You.

First Install Barcode Reader. In which have these files included as follows.

File Name Size Folder
----------------------------------------------------
Frmpdf.exe 79 KB Barcode Folder
Bclw.dll 85 KB Barcode Folder
Vfp16.dll 5 KB Barcode Folder
Form.txt variable Intelpdf Folder
Barpdf.bmp variable Intelpdf Folder (Will be created by itself)
Frmpdf.ini 1 KB Windows Folder

[Barpdf Parameters]
BarWidth=2
BarHeight=6
Security Level=6


=======================================
Expand|Select|Wrap|Line Numbers
  1.  
  2. PROCEDURE barcode IS
  3.  
  4.   in_file    TEXT_IO.FILE_TYPE;
  5.   linebuf      VARCHAR2(80);
  6.   t    varchar2(6);
  7.   cnt     number(2);
  8.  
  9. CURSOR INV_PRIN_CUR IS
  10. select b.cust_name, b.add1,b.add2,b.add3,b.cst_number,
  11.   b.cst_date, b.lst_number ,b.lst_date,b.ecc_no,
  12.   B.VEND_code,a.po_no,a.remark, a.po_date,a.challan_no,
  13.   a.challan_dt,(a.exc_amt+A.CESS_ED) EXC_AMT,e.cust_part_no,c.product_name,
  14.   a.desp_qty,a.rework,c.uom,a.cases,a.vehicle_no,
  15.   a.srv_rate,a.sale_amt,a.free_supp_rate,a.bas_exc_rate,
  16.   (a.exc_amt/a.desp_qty),a.s_tax_rate,(a.s_tax_amt/a.desp_qty),
  17.   a.s_tax_amt,a.st_surcharge,(a.surcharge_amt/a.desp_qty),
  18.   a.surcharge_amt,a.net_amt,a.pla_rg_sed,a.duty_ent_no,
  19.   a.rec_type,a.main_acc_code,a.srv_no,a.product_code,a.s_tax_ind,
  20.   a.st_code,a.recd_qty,a.party_code,a.pla_rg_bed,a.time,d.uom_desc,a.di_no,kanban_no
  21. from srv a ,cust_master b,product_master c,unit_master d, sale_po_master e
  22. where a.party_code  = b.cust_code and
  23.  a.product_code = c.product_code and
  24.  c.uom = d.uom and
  25.  LTRIM(RTRIM(a.po_no))=LTRIM(RTRIM(e.po_number)) and
  26.  a.product_code = e.product_code and
  27.  a.party_code   = e.CUST_code and
  28.  srv_no between :START_SRV and :END_SRV
  29.  AND a.challan_Dt >= (select financial_year from install_param)
  30.  ORDER BY SRV_NO;
  31. BEGIN
  32.  
  33.  select count(*) 
  34.  into  cnt
  35.  from srv a ,cust_master b,product_master c,unit_master d, sale_po_master e
  36.  where a.party_code  = b.cust_code and
  37.   a.product_code = c.product_code and
  38.   c.uom = d.uom and
  39.   LTRIM(RTRIM(a.po_no))=LTRIM(RTRIM(e.po_number)) and
  40.   a.product_code = e.product_code and
  41.   a.party_code   = e.CUST_code and
  42.   srv_no between :START_SRV and :END_SRV
  43.   AND a.challan_Dt >= (select financial_year from install_param);
  44. if nvl(cnt,0)=0 then
  45.  message(' No Invoice Exists for Given range of Invoice Numbers ');
  46.  raise form_trigger_failure;
  47. else
  48.  forms_ddl('delete from srv_bar');
  49.  host(' del c:\intelpdf\form*.txt ');
  50.  host(' del c:\intelpdf\bar*.bmp ');
  51.  
  52.     FOR INV_CUR IN INV_PRIN_CUR
  53.       LOOP
  54.  ---message('value of srv_no is '||to_char(inv_cur.srv_no));
  55.  
  56.  
  57.  in_file := TEXT_IO.FOPEN('c:\INTELPDF\form.txt','w');
  58.  
  59.     TEXT_IO.PUT(in_file,'K199');
  60.  TEXT_IO.PUT(in_file,rpad(inv_cur.srv_no,7));
  61.      TEXT_IO.NEW_LINE(in_file,1);
  62.  TEXT_IO.PUT(in_file,to_char(inv_cur.challan_dt,'dd'));
  63.  TEXT_IO.PUT(in_file,to_char(inv_cur.challan_dt,'mm'));
  64.  --TEXT_IO.PUT(in_file,to_char(inv_cur.challan_dt,'yyyy'));
  65.  TEXT_IO.PUT(in_file,to_char(inv_cur.challan_dt,'yy'));
  66.  TEXT_IO.NEW_LINE(in_file,1);
  67.  TEXT_IO.PUT(in_file,inv_cur.cust_part_no);
  68.  TEXT_IO.NEW_LINE(in_file,1);
  69.  TEXT_IO.PUT(in_file,substr(inv_cur.po_no,5,27));    
  70.  TEXT_IO.NEW_LINE(in_file,1);
  71.  TEXT_IO.PUT(in_file,to_char(inv_cur.desp_qty));  
  72.  TEXT_IO.NEW_LINE(in_file,1);
  73.  if inv_cur.rec_type = 'SP' then
  74.  TEXT_IO.PUT(in_file,'S');  
  75.  else
  76.  TEXT_IO.PUT(in_file,'1');  
  77.  end if;
  78.  TEXT_IO.NEW_LINE(in_file,1);
  79.  TEXT_IO.NEW_LINE(in_file,1);
  80.  TEXT_IO.PUT(in_file,rpad(inv_cur.srv_no,7));
  81.      TEXT_IO.NEW_LINE(in_file,1);
  82.  TEXT_IO.PUT(in_file,to_char(inv_cur.challan_dt,'dd'));
  83.  TEXT_IO.PUT(in_file,to_char(inv_cur.challan_dt,'mm'));
  84.  --TEXT_IO.PUT(in_file,to_char(inv_cur.challan_dt,'yyyy'));
  85.  TEXT_IO.PUT(in_file,to_char(inv_cur.challan_dt,'yy'));
  86.  TEXT_IO.NEW_LINE(in_file,1);
  87.  TEXT_IO.PUT(in_file,to_char(inv_cur.sale_amt));    
  88.  TEXT_IO.NEW_LINE(in_file,1);
  89.  TEXT_IO.PUT(in_file,to_char(inv_cur.exc_amt));    
  90.  TEXT_IO.NEW_LINE(in_file,1);
  91.  TEXT_IO.PUT(in_file,to_char(inv_cur.s_tax_amt));
  92.  TEXT_IO.NEW_LINE(in_file,1);
  93. if inv_cur.di_no is not null then
  94.  TEXT_IO.PUT(in_file,inv_cur.di_no);
  95. elsif inv_cur.kanban_no is not null then
  96.  TEXT_IO.PUT(in_file,inv_cur.kanban_no);
  97. end if;
  98.  TEXT_IO.NEW_LINE(in_file,1);
  99.  TEXT_IO.NEW_LINE(in_file,1);
  100.  TEXT_IO.FCLOSE(in_file);
  101.  
  102.  ---message('before PDF RUN');
  103.   HOST('C:\barcode\FRMPDF');
  104.  ---message('AFTER PDF RUN');
  105.  
  106.  ---message('before copy');
  107.   HOST('copy'||' c:\INTELPDF\BARPDF.BMP'||' c:\INTELPDF\'||to_char(inv_cur.srv_no)||'.BMP');
  108.  ---message('after copy');
  109.  
  110.   READ_IMAGE_FILE('c:\INTELPDF\'||to_char(inv_cur.srv_no)||'.BMP', 'BMP', 'BARFILE');
  111.   :SRV_NO:=INV_CUR.SRV_NO;
  112.   NEXT_RECORD;
  113.  
  114.  END LOOP;
  115.  COMMIT;
  116. end if;
  117. EXCEPTION
  118.  WHEN no_data_found THEN
  119.   TEXT_IO.PUT_LINE('Closing the file...');
  120.   TEXT_IO.FCLOSE(in_file);
  121. END;
  122.  
Feb 12 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Orhan Aykut | last post by:
Hi, This may be a newbie question though but we're about to start a large s/w project (it will be a scalable "accounting and budget program" in a large scale) and we're planning to develop it in...
5
by: mr.iali | last post by:
Hi Everyone I would like to get into software developent using a programming language like c++, java or pl/sql for oracle. I have no idea where to start from. Which language is there more...
9
by: AnandaSim | last post by:
Hi All, I've had Access 97, 2000 connections to the corporate Oracle database for a few years now - but seldom use it. When I did use it years ago, performance was not fast but the features were...
2
by: Sreedharan | last post by:
Hi, I am using C#. Is there no Join method (in thread class)for Smart device application? And Also i noticed that Name property isn't there(got compiler error when trying to use them) Is this...
26
by: johkar | last post by:
I need to cancel the link and execute a function onclick of all the links within the span tag which has a class of "container" assigned. There will be only one span tag with this class applied. ...
14
by: Professor Yonce | last post by:
I have made form for E-Mail. I have entered code but the Import system does not work. It has squiggly line underneath it showing it is not communicating. It Will not build. Public Class...
0
by: rushdishams | last post by:
Dear all, im very new to the oracle forms. i am using oracle 10g developer. i am having the following problems 1. sometimes i am able to connect to database, sometimes i am not able. my database...
0
by: anneeny | last post by:
Hi there... My company has implemented Oracle Financials and Project applications in 1999 as a part of Y2K project. Oracle 11.0.3 Applications are implemented in 3-tier configuration as per the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.