how to print barcodes?


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users how to print barcodes?
# 1  
Old 06-26-2002
Question how to print barcodes?

Hello All,

I need to print barcodes on reports being generated/printed on a Unix server. I think I can do this using a combination of PCL and TrueType fonts, but I'm not exactly sure how. Can anyone point me in the right direction? Any help would be appreciated...
# 2  
Old 07-26-2002
If you are using PCL you just have to send the PCL commands to a file and print this file thru a PCL print driver. Which i guess your are already using.

Offcourse the trick is to generate the PCL commands. We did this for EAN13 and EAN8 using our 4GL language but you can use any language or even scripts.

example of such code in our 4GL:

ASSIGN pEAN13ControlStr = pEAN13ControlStr + "~033"
+ "*p"
+ STRING(pColX)
+ "x"
+ STRING(pRowY)
+ "Y"
+
IF SUBSTRING( CodeTekst, t, 1) = "1"
THEN "~033*c"
+ STRING(pi-Breedte)
+ "a"
+ STRING(pi-Hoogte)
+ "b0P"
ELSE ""


You see, iam using *p and x,y. These ares simple PCL commands that put the pencil down at coördinates x,y and draws a line.

The logic you must program yourself.

Good luck
J
# 3  
Old 07-28-2002
Re: how to print barcodes?

Quote:
Originally posted by gdrumb
Hello All,

I need to print barcodes on reports being generated/printed on a Unix server. I think I can do this using a combination of PCL and TrueType fonts, but I'm not exactly sure how. Can anyone point me in the right direction? Any help would be appreciated...
You should be able to use the TrueType Font barcodes without any problems. The key is to know the delimiter characters (it has been so long that I have forgotten, but might be tilde...?) otherwise the barcode readers will not be able to read the barcodes.
# 4  
Old 07-30-2002
Thanks for the help...
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Debian

GNU Barcodes

I wish to be able to print a barcode .5 inches from top of the page and centered. I generate the barcode - yes 12345 | head -84 | barcode -p 5x5.0cm -umm -e CODE39 > test.ps; and print - lpr -o media=letter -#1 -P LJ1012 /var/www/test.ps -o page-top=33 -o page-bottom=44 -o... (1 Reply)
Discussion started by: Meow613
1 Replies

2. Solaris

Setting up Solaris 10 to print to a windows print server

Guys, I have a issue that I am trying to rectify please advise. lpstat -t shows scheduler is running printer lext644 disabled since Mon Dec 02 19:48:18 2013. available.I have restarted the printer service and it shows online but the above says disabled. I have a lot of jobs in the print... (1 Reply)
Discussion started by: terrywhitejr
1 Replies

3. UNIX for Dummies Questions & Answers

How to create a print filter that print text & image?

Currently, I have a print filter that takes a text file, that convert it into PCL which then gets to a HP printer. This works. Now I need to embedded a image file within the text file. I'm able to convert the image file into PCL and I can cat both files together to into a single document... (1 Reply)
Discussion started by: chedlee88-1
1 Replies

4. What is on Your Mind?

loading barcodes

Does anyone know how I can upload a barcode into UNIX? I want to scan the product and load it into the UNIX system. (4 Replies)
Discussion started by: Albright Weldin
4 Replies

5. UNIX for Advanced & Expert Users

[Solved] remove all print jobs from a print queue

Hello, Sometimes i need to clear all the jobs of a print queue and it is really annoying to cancel one by one. Is there a way to cancel all print jobs for a specific print queue with a single command instead of cancelling them one by one? My AIX system is 5.3 Thank you for your attention (2 Replies)
Discussion started by: omonoiatis9
2 Replies

6. Shell Programming and Scripting

print first few lines, then apply regex on a specific column to print results.

abc.dat tty cpu tin tout us sy wt id 0 0 7 3 19 71 extended device statistics r/s w/s kr/s kw/s wait actv wsvc_t asvc_t %w %b device 0.0 133.2 0.0 682.9 0.0 1.0 0.0 7.2 0 79 c1t0d0 0.2 180.4 0.1 5471.2 3.0 2.8 16.4 15.6 15 52 aaaaaa1-xx I want to skip first 5 line... (4 Replies)
Discussion started by: kchinnam
4 Replies

7. Shell Programming and Scripting

Howto Print File Path or Print the Filename

I'm trying to clean up my samba share and need to print the found file or print the path of the image it tried to searched for. So far I have this but can't seem to get the logic right. Can anyone help point me in the right direction? for FILE in `cat list`; do if ; then ... (1 Reply)
Discussion started by: overkill
1 Replies

8. HP-UX

Print Problem in UNIX. Need to know the option to specify the print paper size

Hi, Could any one please let me know what is the option available in UNIX to print by specifying the paper size? We are using Unix11i. I could n't see any option specified in the 'lp' command to print the report by specifying the size of the paper. It would be of great help to me, if... (1 Reply)
Discussion started by: ukarthik
1 Replies
Login or Register to Ask a Question