Consultor Eletrônico



Kbase P17587: How to switch Lexmark Forms printer to bar code printing mode?
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   15/10/2008
Status: Verified

FACT(s) (Environment):

Progress 9.1D

SYMPTOM(s):

Unable to print bar code on Lexmark "Forms Printer" using Progress 4GL.

Can print barcode on same printer using Fox Pro.

Code entails sending a "Barcode Setup Command"; an escape control codes sequence; to start the bar code printing mode.

CAUSE:

The Barcode Setup Command escape control sequence for the Lexmark "Forms Printer 248x/249x" family requires the output of the null character. The code was using the Progress 4GL statement:

PUT CONTROL CHR(0).

to output the null character. Changing the above statement to:

PUT CONTROL NULL.

resolves this issue.

FIX:

According to the Lexmark “Forms Printer 248x/249x Technical Reference”, the "Barcode Setup Command" syntax requires sending a string containing the NULL character CHR(0) to the printer. To send the null character to the printer from the Progress 4GL, use the statement:

PUT CONTROL NULL.

For programming details of this printer family, consult its "Technical Reference" document at:

http://www.lexmark.com/publications/pdfs/form2400/en/enTref.pdf