Operating System - HP-UX
1832106 Members
3138 Online
110038 Solutions
New Discussion

Printing Bar Code From HP-UX to Line Printer

 

Printing Bar Code From HP-UX to Line Printer

Hi,

How to send a barcode printing from HP-UX Server. We are using Printronix which supports printing bar code.

I found from the Printer manual to use the following command
"SFCC | } ; CC ; 0 ; 0000 ; 0000 ; 008 ; 12345678 ; PA ; H05 ; D"
to print simple bar code, But, I would like to know how to send this command from HP-UX.

Regards,



12 REPLIES 12
Printaporn_1
Esteemed Contributor

Re: Printing Bar Code From HP-UX to Line Printer

if you're using serial or parallet printer , try cat that command to port
enjoy any little thing in my life
Varghese Mathew
Trusted Contributor

Re: Printing Bar Code From HP-UX to Line Printer

Hi,

Are you planning to tale printout from any application on HPUX??, if then i can give some inputs, as we have recently installed two printer in our system. We have K570 servers running with SAP 4.6b and we need to install the printers for printing bar code.The Printer model we have used is Intermec.

Here is the way to configure it.., first we had given the ip to the printer switch, apart from the configuration from the printer side, we have added the printer name and ip in /etc/hosts file. Then we went ahead with adding a remote printer using SAM, select te option for "remote printer is on a BSD system", model we took as rcmodel, and thats it from the unix side. Then we tried to print from unix, where it didn't work at all. Then we have created the printer in the application level ie; in the SAP 4.6b with the IPaddress/name of the printer and tried printing - it worked...

Thats fine

Hope this helps..
cheers !!!
Mathew
Cheers !!!

Re: Printing Bar Code From HP-UX to Line Printer

Hi Mathew,

My problem is not with configuring printer. It's working very fine. It's with printing barcodes.

Rgds,
Sachin Patel
Honored Contributor

Re: Printing Bar Code From HP-UX to Line Printer

Hi Harikrishna,
Are you trying to print I-400 Form(citizanship)? If yes that application requires a printer on local lpt1 so if you trying to print that on network printer you have to run this following command on NT or 98/2000's DOS prompt.
"net use lpt1 \\server\printername"

Sachin
Is photography a hobby or another way to spend $
Manuel P. Ron
Frequent Advisor

Re: Printing Bar Code From HP-UX to Line Printer

To send a command to a printer put that command in a file and then send it like a print.

lp -d

Working so, we can print bar codes. If you don't achieve it, look carefully your command. It must be exactly wrote.

Good luck!
Crash programs fail because they are based on the theory that, with nine women pregnant, you can get a baby a month. - Wernher von Braun

Re: Printing Bar Code From HP-UX to Line Printer

The lp -d is works fine from day 1. It's not an issue. If I put my control characters "SFCC | } ; CC ; 0 ; 0000 ; 0000 ; 008 ; 12345678 ; PA ; H05 ; " from a file it just prints the string (the file content) instead of bar code.

My question is how to pass the control characters (to print bar code) to the printer.

Rgds
Varghese Mathew
Trusted Contributor

Re: Printing Bar Code From HP-UX to Line Printer

Hi Harkrishna,

I would let someone else to have a look, as i don't have more ideas on this, ...

Cheers !!!
Mathew
Cheers !!!
Carlos Fernandez Riera
Honored Contributor

Re: Printing Bar Code From HP-UX to Line Printer

Control secuences use to begin with ESC character. ESC = 1b HEX or 33 octal.


edit you file ussing vi
Press "i" on the beginning of secuence then ^V ( CNTRL-V) and ESC key.

Save it and print.

Good luck.
unsupported

Re: Printing Bar Code From HP-UX to Line Printer

Attached is the test file!
Tracey
Trusted Contributor

Re: Printing Bar Code From HP-UX to Line Printer

We use Zebra's language to print out our bar codes and we had to define the Zebra printer as type "Dumb" before the bar codes would print out.

Re: Printing Bar Code From HP-UX to Line Printer

Hi Tracey,

Could u please give me the steps to use Zebra's language.

TIA,
Tracey
Trusted Contributor

Re: Printing Bar Code From HP-UX to Line Printer

Our were set up through HP JetDirect, and one of the choices that comes up when it cannot identify it as an HP printer is "Dumb" (really). After set up as a dumb printer, we just lp -dzebra1 file and the codes are caught and interpreted by the printer - the HP side doesn't try to do anything with the codes as it does when set up other ways.