Welcome Serena Central users! CLICK HERE
The migration of the Serena Central community is currently underway. Be sure to read THIS MESSAGE to get your new login set up to access your account.
JaapV Super Contributor.
Super Contributor.

Barcode(codabar) escapecodes(HP printer)

I looking for example printing barcode(codabar) with using the escapecodes(HP printer)

Tags (1)
1 Reply
RobertRedekop Trusted Contributor.
Trusted Contributor.

RE: Barcode(codabar) escapecodes(HP printer)

Barcodes can be done in several ways:
1. Your printer can have a font pre-installed. Then you can use escape codes.
2. You can have a windows barcode font installed, then you can use WIN$PRINTER font control to print using that font.
3. You can google "postscript barcode" and go to terry burton's website and download the postscript header file that implements routines for all known barcode types. (He developed it while at nasa and still maintains it).

I am not sure how to do escape codes to the printer while using WIN$PRINTER, but if you write to the printer using the phrase "WITH NO CONTROL" you can do something like this:

MOVE X"1B30313233" TO PRINT-VAR.

will write out escape followed by 0123, which would be replaced by whatever string you need.

Or you can set up a variable, make it varying and depending on another variable for the size, then you do not have to use the reference feature (1:x) to limit how much you write.
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.