Consultor Eletrônico



Kbase P18363: How to use printer control codes (PCL codes) with ASCII, OCTAL or HEXADECIMAL values?
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   15/10/2008
Status: Verified

GOAL:

How to use printer control codes (PCL codes) with ASCII, OCTAL or HEXADECIMAL values?

FIX:

Use the CONTROL option of the PUT statement. For example:

OUTPUT TO PRINTER.

PUT CONTROL "~55". /* HEXADECIMAL EXAMPLE */
PUT CONTROL "~033". /* OCTAL EXAMPLE */
PUT CONTROL CHR(13). /* ASCII EXAMPLE */

For specific control codes reference your devices user manual or their website