Post Net Bar code printing on Epson action 5000 printer 
Author Message
 Post Net Bar code printing on Epson action 5000 printer

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.



Fri, 21 Dec 2001 03:00:00 GMT  
 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.



Fri, 28 Dec 2001 03:00:00 GMT  
 Post Net Bar code printing on Epson action 5000 printer

Quote:

>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.

I'm sorry..... You're saying that CHR$(&h21) won't work?????
It does at my house!

C'ya,

   ____    _    ____      ____  _____
  |  _ \  / \  / ___) __ | ___)(_   _) Don Schullian

  |____//_/ \_\(____/\__/|_|     |_|    www.DASoftVSS.com
  ___________________________________   www.basicguru.com
      Vertical Software Solutions



Sat, 29 Dec 2001 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Post Net Bar Code printing

2. How do I print Epson control characters to an Epson printer using VB5

3. Post Net Bar Code

4. Epson Printer Control Codes

5. Printing to Epson Printers

6. printing with an Epson laser printer

7. Reg: Using Vb code how to perform some functions in Epson LQ-300 printer

8. Help with printing to Epson DFX printer from VB6

9. Anybody facing printing alignment problem with epson lx1170+ printer

10. Help with printing to Epson DFX printer from VB6

11. print CR report in a pos printer (epson TM L60II)

12. Help - Must speed up printing on an Epson dot-matrix printer

 

 
Powered by phpBB® Forum Software