473,394 Members | 1,865 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,394 software developers and data experts.

barcode

I am in the process to create an online form using PHP with DB Oracle
or MySQL, this form which consist of
2x parts personal data and finance data, and it will be filled by the
users, once the form is filled and submitted ,
it will be saved to the system as reference and printed as hardcopy it
could be a pdf or not, but the print format
will be on A4 format hardcopy with printed random generated (internal
calculation) bar code printed on the paper.
Then in the central office through bar code readers the date will be
retrieved.

Any one implemented this kind of application, if yes how did you
generate the bar code on the web form
through php, and which bar code readers did you use in order to access
and retrieve the data from the form?

Thnaks

Oct 21 '06 #1
4 4280
madunix wrote:
I am in the process to create an online form using PHP with DB Oracle
or MySQL, this form which consist of
2x parts personal data and finance data, and it will be filled by the
users, once the form is filled and submitted ,
it will be saved to the system as reference and printed as hardcopy it
could be a pdf or not, but the print format
will be on A4 format hardcopy with printed random generated (internal
calculation) bar code printed on the paper.
Then in the central office through bar code readers the date will be
retrieved.

Any one implemented this kind of application, if yes how did you
generate the bar code on the web form
through php, and which bar code readers did you use in order to access
and retrieve the data from the form?

Thnaks
Yes, I've done similar things (not from a web page, though). I've
always used a bar code printer. I've found standard printers do not do
as well with barcodes, and the result isn't as readable by most barcode
readers.

But if you have to use a non-barcode printer, you'll probably be better
off using C or C++ for the printing. Depending on which barcode you
decide to use, you may be able to find a library to help you.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Oct 21 '06 #2

madunix wrote:
I am in the process to create an online form using PHP with DB Oracle
or MySQL, this form which consist of
2x parts personal data and finance data, and it will be filled by the
users, once the form is filled and submitted ,
it will be saved to the system as reference and printed as hardcopy it
could be a pdf or not, but the print format
will be on A4 format hardcopy with printed random generated (internal
calculation) bar code printed on the paper.
Then in the central office through bar code readers the date will be
retrieved.

Any one implemented this kind of application, if yes how did you
generate the bar code on the web form
through php, and which bar code readers did you use in order to access
and retrieve the data from the form?

Thnaks
If you are doing barcodes you need either to have a common (as in
identifyable by HTML FONT tags) barcode font installed on the clinet
computer or b) use something that generates the barcode graphic on the
server side (either as an attached GIF/PNG or as a PDF documant).

Next problem is when you print the barcode it may be scanable or not
depending on the clinet's printer and drivers (i.e. I have seen wide
variations), even if the print is crisp, sometimes the driver fudges on
the images to fit to page and may change the width of some of the
barcode bars (making it unreadable) so making the codes a larger (or
sometimes slightly smaller) size may help.

As for readters I use keyboard wedge readers (scan the code, it enters
it into the computer as if you typed the alhanumeric value it
represents.) In the US you can get a inexpensive scanner through CDW
i.e. http://www.cdw.com/shop/products/def...spx?EDC=654453 , this
one is a CCD scanner, which means you have to put the scanner next to
the code to read, others are wand or pen scanners, which you drag
across the code (cheap not great reliability) or laser scanners which
you point and click gun style (best but quite expensive) CCD is in the
mid-range.

Probably the easiest barcode symbology is code 3 of 9 which is an
alpha-neumeric code that can be in a font form (thare are many other
symbologies that are more compact or have comapatibility -UPC- and
usually are more complex to generate). Here is a site that has code
3of9 free in true type form:
http://www.barcodetraders.com/bct_scan_barcode.asp

Using the code in an application you need to think about how you want
it to work, most stores you see the registers just scan one item after
another, which means there is just one text entry field on the screen
(the code) they scan the code with is either a product code (like an im
ID number) or some control code (i.e. coupon - 10% off - maybe says
something like C2006011210, the C tells the computer the entry is a
coupon) anyway a bit of imagination and planning and you can make up
some really cool applications with barcodes.

Hope that helps
Larry

Oct 21 '06 #3

la***@portcommodore.com wrote:
madunix wrote:
I am in the process to create an online form using PHP with DB Oracle
or MySQL, this form which consist of
2x parts personal data and finance data, and it will be filled by the
users, once the form is filled and submitted ,
it will be saved to the system as reference and printed as hardcopy it
could be a pdf or not, but the print format
will be on A4 format hardcopy with printed random generated (internal
calculation) bar code printed on the paper.
Then in the central office through bar code readers the date will be
retrieved.

Any one implemented this kind of application, if yes how did you
generate the bar code on the web form
through php, and which bar code readers did you use in order to access
and retrieve the data from the form?

Thnaks

If you are doing barcodes you need either to have a common (as in
identifyable by HTML FONT tags) barcode font installed on the clinet
computer or b) use something that generates the barcode graphic on the
server side (either as an attached GIF/PNG or as a PDF documant).

Next problem is when you print the barcode it may be scanable or not
depending on the clinet's printer and drivers (i.e. I have seen wide
variations), even if the print is crisp, sometimes the driver fudges on
the images to fit to page and may change the width of some of the
barcode bars (making it unreadable) so making the codes a larger (or
sometimes slightly smaller) size may help.

As for readters I use keyboard wedge readers (scan the code, it enters
it into the computer as if you typed the alhanumeric value it
represents.) In the US you can get a inexpensive scanner through CDW
i.e. http://www.cdw.com/shop/products/def...spx?EDC=654453 , this
one is a CCD scanner, which means you have to put the scanner next to
the code to read, others are wand or pen scanners, which you drag
across the code (cheap not great reliability) or laser scanners which
you point and click gun style (best but quite expensive) CCD is in the
mid-range.

Probably the easiest barcode symbology is code 3 of 9 which is an
alpha-neumeric code that can be in a font form (thare are many other
symbologies that are more compact or have comapatibility -UPC- and
usually are more complex to generate). Here is a site that has code
3of9 free in true type form:
http://www.barcodetraders.com/bct_scan_barcode.asp

Using the code in an application you need to think about how you want
it to work, most stores you see the registers just scan one item after
another, which means there is just one text entry field on the screen
(the code) they scan the code with is either a product code (like an im
ID number) or some control code (i.e. coupon - 10% off - maybe says
something like C2006011210, the C tells the computer the entry is a
coupon) anyway a bit of imagination and planning and you can make up
some really cool applications with barcodes.

Hope that helps
Larry
See this: http://www.fpdf.org/en/script/script5.php if you want to
generate EAN13. The same algorithm I used in an ASP page and it worked.
I printed the code on a laser printer and I it was readable from
different scanners.

I read above that maybe it will not be readable if the printed page is
resized to fit the page. I THINK (I'm not sure) that will work because
if an image with width of 250 is resized to 290 also the white and
black stripes are resized equally. ...And THEORETICALLY it can be read.

If you want to generate CODE 39, POSTNET, i25 barcodes:
http://www.fpdf.org/en/script/index.php. Use the algorithm, you don't
have to create pdf.

Oct 22 '06 #4

iulian.ilea wrote:
See this: http://www.fpdf.org/en/script/script5.php if you want to
generate EAN13. The same algorithm I used in an ASP page and it worked.
I printed the code on a laser printer and I it was readable from
different scanners.

I read above that maybe it will not be readable if the printed page is
resized to fit the page. I THINK (I'm not sure) that will work because
if an image with width of 250 is resized to 290 also the white and
black stripes are resized equally. ...And THEORETICALLY it can be read.

If you want to generate CODE 39, POSTNET, i25 barcodes:
http://www.fpdf.org/en/script/index.php. Use the algorithm, you don't
have to create pdf.
I was just posting from experience, that with a web based app you
mileage may vary - ultimately depending on the client. An example
would be one of the Linux epson drivers I've used does a wierd
dithering pattern when it prints bitmap images and totally screws up
barcodes (others are fine).

As for resizing, it also depends on the driver, the same scaling
algorithm that causes moire effects in dithered images can potentially
mess up barcode results. For the 250 to 290 that means 40 extra pixels
are inserted somewhere in your image width, the variation between thin
and thick bars (at least in code 3 of 9) is 1 to 3 (3 thin widths-1
thick) So if the browser fudges the image size there may be a problem
(as it is dealing wi ~72 dpi), if it gives it to the printer to resize
(~300dpi+) then it may be ok. You might have good results with a big
bitmap of of code scaled down to fit instead of the opposite as there
are more pixels to work with when printing)

And fpdf is great! (though watch for glitches on reading with IE, read
the FAQ)

Larry

Oct 22 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

21
by: CHANGE username to westes | last post by:
What are the most popular, and well supported, libraries of drivers for bar code scanners that include a Visual Basic and C/C++ API? My requirements are: - Must allow an application to be...
3
by: Tom Turner | last post by:
Here's the background on my situation. The question follows --- We have 600 units of mail going from our business to various Post Offices every morning. Every unit is accompanied by a paper...
4
by: | last post by:
Hi all, we have a need to barcode encode and display a record identifier (number) both in html in the browser and through fdf in adobe acrobat in realtime. Is this possible? Can anyone make any...
1
by: Aaron Bronow | last post by:
I have an asp.net application which loads a Crystal Reports ReportDocument, passes in parameters for selecting data from the report's database connection, renders the report for previewing on the...
6
by: Samuel Shulman | last post by:
I would like to add barcode functionality to my POS program How does one attach barcode reader is it usually USB port How can the program get the data read by the device Thank you, Samuel
7
by: Alper Ozgur | last post by:
Hi; How can i capture and decode the barcode that reading by an usb Barcode reader?
2
by: nmrpa91290 | last post by:
Hi, I am in the design phase of building a database that will track the productivity of my warehouse. I am thinking of using a barcode scanner to assist me with this. Employees will hopefully...
7
by: jim | last post by:
I need to have 2 simple barcode reader applications finished by midnight tonight. I have never written any barcode reader software and need any help that you may be able to offer. I do not know...
2
by: sam | last post by:
can someone show how to change print font width & heigh scaling? I am writing a code for barcode printing on smaller label. I do not want change font size, because this may cause the bar code...
7
by: divyac | last post by:
I am doing an inventory control project and i want to create barcodes for the products in addition to the product details in a form.The form values should be submitted to the database to retrieve for...
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: 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?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.