
HEX-PCL Barcode 
Printer Driver 
for Microsoft Windows 3.1




Version 1.0



July 1995



HEX Technology
417 Manchester Street
Christchurch 8001
New Zealand

PHONE +64 25  358588
FAX   +64  3  3772255
CIS Email:  100241,3550
From Internet:  100241.3550@COMPUSERVE.COM

About
=====

The barcode printer driver works by monitoring the text strings being 
sent to the printer.  If it encounters {barcode...} then it draws the 
specified barcode.  The document text {barcode...} is not printed.  

If there are no {barcode...} text strings within the file being printer, 
then the printer driver acts just like a normal HP Laser printer driver.    

Since the HEX barcode printer driver is a generic HP-PCL driver, you may 
not have access to all the options available on your printer via the 
printer driver settings.  

Purchasing
==========

To purchase this driver please contact HEX Technology via Email or
fax at the addresses listed above.  If sending by Fax please quote
your Email address if you have one.

The registration fee is $250 USD.  Payment must be made
by a credit card.  VISA, MasterCard, Diners Club and American Express.
All orders will be confirmed via fax.  Please specify your full Email
and/or Postal address.  Remember to quote the expiry date and name for the
credit card.

We will confirm all orders by return FAX.


Compatibility
=============
The HEX PCL Barcode Printer Driver is compatible with all 
HP-PCL compliant laser printers.  This includes but is not limited too:

HP LaserJet Series II
HP LaserJet IID
HP LaserJet IIP
HP LaserJet IIIP
HP LaserJet 4 ...
HP LaserJet 5 ...
HP LaserJet Plus
HP LaserJet 500+
HP LaserJet 2000
HP LaserJet
Agfa Compugraphic Genics
Apricot Laser
Epson EPL-6000
Epson GQ-3500
Kyocera F-Series
NEC Silentwriter LC 860/C
NEC Silentwriter LC 860 P
Okidata LaserLine 
Olivetti PG 108
Olivetti PG 208
Olivetti PG 308
QuadLaser  I
 Tandy LP-1000
 Tegra Genesis
 Toshiba PageLaser
 Wang LDP8

The driver will work with any Windows software package that sends 
text strings to the printer.  

It will not work if text to sent to the printer as graphics.  
Therefore you should ensure the "Print True Type as Graphics" option in the printer driver settings is turned OFF.

Installation
============

Automated Installation

1.  Run the Windows control panel
2.  Select the Printers Icon
3.  Select the Add button
4.  Select the Install button
5.  Select the A:  drive or whatever your floppy disk name is.
6.  Select OK
7.  The name of the HEX Printer driver should now appear
8.  Select OK.
9.  When back in the list of printers. Select the Connect button to connect the HEX Barcode driver to the correct printer port, eg: LPT1 or LPT2 etc.
10. Close the Control panel


When printing from normal Windows software, ensure you have 
the HEX Barcode Printer Driver selected as the active printer.


Manual Installation
===================

Copy HEXPCL.DRV to the Windows System directory.
Copy PTBAR.DLL to the Windows directory.
Add the following line to the [PrinterPorts] section of your WIN.INI file.

[PrinterPorts]
HEX PCL Barcode Driver =HEXPCL,LPT2:,15,45

Add the following line to the [devices] section of your WIN.INI file.

[devices]
HEX PCL Barcode Driver =HEXPCL,LPT2:

If your printer is connected to LPT1 or another port then replace LPT2: 
with the correct name.

Ensure you enter the text exactly as specified.  Do not enter [PrinterPorts] or [devices]
you should already have these lines in your win.ini file



Operation
=========

The barcode field has the syntax:

barcodeField  > {barcode,data,text,style,rotation,xPos,yPos,width,height}

data >  any combination of letters and digits 
	
text > any combination of letters and digits (not currently used)

style >  one numerical value from the following:

#define BARCODE_2of5				1
#define BARCODE_2of5_Interleaved 		2
#define BARCODE_3of9                            3
#define BARCODE_Codabar                         4
#define BARCODE_Code39                          5
#define BARCODE_Code93 				6
#define BARCODE_Code128 			7
#define BARCODE_EAN128  			9
#define BARCODE_EAN13 				10
#define BARCODE_EAN8 				11
#define BARCODE_MSI 				12
#define BARCODE_ITF 				13
#define BARCODE_Code11 				14
#define BARCODE_CodeB				15
#define BARCODE_Telepen 			16
#define BARCODE_UPC_A 				17
#define BARCODE_UPC_E 				22
#define BARCODE_Code128_A 			23
#define BARCODE_Code128_B			24
#define BARCODE_Code128_C 			25

rotation > one numerical value from the following

#define ROTATION_Normal  			0
#define ROTATION_UpsideDown 			1
#define ROTATION_Left 				2
#define ROTATION_Right 				3

xPos > a numerical value from 0 to n where n is the maximum width of 
the printer page in millimetres.

yPos > a numerical value from 0 to n where n is the maximum height of 
the printer page in millimetres.

width > a numerical value from 0 to n where n is the required width of 
the barcode in millimetres.

height > a numerical value from 0 to n where n is the required width of 
the barcode in millimetres.


Be careful with line breaks.   If the barcode field is split between 
lines it will not work.

Example/Test File

To test if the driver is working correctly on your computer, please load 
the file TESTPAGE.TXT from the installation disk and print from any 
editor or word processor.


The file contains:

This is a test page for the HEX HP-PCL Barcode Printer Driver

			
 


hello{barcode,two,hello,7,0,25,25,40,10}Barcode2
hello{barcode,three,hello,7,0,40,40,40,10}Barcode3
hello{barcode,four,hello,7,0,55,55,40,10}Barcode4
hello{barcode,five,hello,7,0,70,70,40,10}Barcode5
hello{barcode,six,hello,7,0,85,85,40,10}Barcode6
hello{barcode,seven,hello,7,0,100,100,40,10}Barcode7
hello{barcode,eight,hello,7,0,115,115,40,10}Barcode8
hello{barcode,nine,hello,7,0,130,130,40,10}
hello{barcode,ten,hello,7,0,145,145,40,10}Barcode10
hello{barcode,eleven,hello,7,0,160,160,40,10} Barcode11
hello{barcode,twelve,hello,7,2,40,100,40,10}   Barcode12
hello{barcode,updown,hello,7,2,100,220,40,10}   Barcode13
hello{barcode,9123456789012,hello,10,0,50,220,40,30} 
hello{barcode,9123456789012,hello,10,0,110,220,40,30} 
hello{barcode,ten,hello,7,3,180,50,40,4}


{barcode,234265,line1,7,0,180,100,30,3}
{barcode,456412,line2,7,0,180,103,30,3}
{barcode,345487,line3,7,0,180,106,30,3}
bye{barcode,352234,line4,7,0,180,109,30,3}
bye{barcode,789898,line1,7,0,180,112,30,3}
bye{barcode,234390,line2,7,0,180,115,30,3}
bye{barcode,123454,line3,7,0,180,118,30,3}
bye{barcode,878923,line4,7,0,180,121,30,3}
bye{barcode,897238,line1,7,0,180,124,30,3}
bye{barcode,787723,line2,7,0,180,127,30,3}
bye{barcode,223411,line3,7,0,180,130,30,3}


The printer driver can print in most common
barcode styles.

{barcode,234265,line1,7,0,50,150,30,3}
{barcode,456412,line2,7,0,50,153,30,3}
{barcode,345487,line3,7,0,50,156,30,3}
bye{barcode,352234,line4,7,0,50,159,30,3}
bye{barcode,789898,line1,7,0,50,162,30,3}
bye{barcode,234390,line2,7,0,50,165,30,3}
bye{barcode,123454,line3,7,0,50,168,30,3}
bye{barcode,878923,line4,7,0,50,171,30,3}
bye{barcode,897238,line1,7,0,50,174,30,3}
bye{barcode,787723,line2,7,0,50,177,30,3}
bye{barcode,223411,line3,7,0,50,180,30,3}






