
Post Net Bar code printing on Epson action 5000 printer
I would have to see your code to know exactly what you are doing
wrong. You cannot pass hex values to the CHR$ function. You need to
pass them using the syntax: Lprint Chr$(Val("&H1B"));
or convert from hex to decimal and pass the decimal value to the Chr$
function. Also, when you use the LPrint fuinction, there is an
implicit carriage return - linefeed added to every print unless you
put a semi-colon at the end of the Lprint function.
The company that I work for sells source code for printing bar codes
to any Epson printer - even ones that do not have bar code support
Quote:
>Hi,
> I have been trying to find a method to print Post Net Bar codes on an
>Epson Dot matrix printer. I was given some info to help me accomplish
>this task but have not been able to make it work using QBasic v 4.5.
> Here is the info I was given: (numbers are in hex)
> 1B 28 42 0F 00 ; Barcode command and data length
> 07 ; Barcode type k = POSTNET
> 02 ; Module width m = 2 dots / 180 inch
> 00 ; Space adjustment value s = +0 dots / 360 inch
> 00 00 ; Bar length value v1 and v2 are
>ignored. POSTNET uses the fixed bar length.
> 01 ; Control flags c
> 31 32 33 34 35 36 37 ; Barcode Data
> 38 39
> The above info was taken from an EPSON Reference manual.
> I try to use CHR$ statements for each value except the data anmd I
>can't get it to work.
> I would be very appreciative if someone wouild help me.
>Thank you,
>Jim Roberts
> As my printer is assigned to LPT2 I have to use an OPEN command for
>LPT2 which works for all other cases.