Huge Collections of Software Manuals and Knowledgebase

GreatManuals.com
Huge Collections of Software Manuals and Knowledgebase

 
Home Contact us Request to publish your help manuals Request to remove your help manuals

Introduction
 » Morovia PCL Barcodes & More 1.5
Basic PCL Knowledge
 » Font Source
 » Font Characteristics
 » PCL Printer Command
 » Sending PCL Commands to Printer
Downloading Font to Printer
 » Windows
 » UNIX/LINUX
 » LPR
 » Verifying Fonts Existence
Selecting Fonts
 » Symbol Set Command
 » Pitch Command
 » Height Command
 » Typeface Family Command
 » Font ID
 » Best Practice
 » Adding Human Readable Text
 » Barcode String
Barcode Technologies
 » Code 3 of 9
 » Code 39 Extended
 » UPC-A
 » POSTNET
 » OCR-A & OCR-B
Support Details
 » Technical Support
 » Supplemental Information
 » Glossary
 

LPR

When the printer is connected to a TCP/IP network directly, the best method is to send commands through lpr command. A TCP/IP device may be identified with a full qualified DNS name, or an IP address. In our test lab, we assigned our network printer a fixed IP address 192.168.1.22, and we use this address in the examples below. In lpr manual page, it is also referred as Printer Name.

Another name you will need is Queue Name. The queue names are names assigned to the “processors” in the print server. Most print servers and network printers have hardcoded queue names. Some allow you to define your own queue. On HP JetDirect printer servers, the raw PCL queues are named as raw, raw1, raw2 and raw3. In test files we use raw as the queue name.

Note that lpr command only accepts 1 file at a time. However, the step1 and step2 commands must be sent in one stream, otherwise the printer will discard them altogether. As a result, you will need to merge these three files into one first. On Windows, you can use copy command:

Barcode Generator Bookkeeping software Barcode software
Business financial software Billing software Accounting software

 

copy /b C80D.txt +mrvcode39_4pitch.sfp +c5F.txt total.bin

On Linux/Unix platforms, use cat command:

cat c80D.txt mrvcode39_4pitch.sfp c5F.txt > total.bin

Now we can send these files (Windows):

lpr -S 192.168.1.22 -P raw -ol total.bin lpr -S 192.168.1.22 -P raw -ol data.txt

You need to replace the ip address, the queue name and the file name with the appropriate ones in your environment.
On Linux/UNIX platforms, things are more complicated. The configuration varies from platform to platform. Generally you need to set up the printer first. On RedHat Linux, this can be done using printtool. You assign a printer name (queue name) in the configuration, and you use this name in lpr command. Assume that the name is HPPrinter, the lpr command on RH Linux becomes:

lpr -P HPPrinter -o raw total.bin lpr -P HPPrinter -o raw data.txt

Home | Contact us | Request to publish your help manuals | Request to remove your help manuals