print.c

Many programmers will use their own code to print text strings, using fonts. To print bar codes, use the same method to print text; first calculate the text string (using a bar code function), then print the text string using a bar code font.

print.c contains useful functions to print a bar code and human readable text below or above the bar code.

Note: Some bar code fonts include human readable text (in the font design), so human readable text is printed automatically with the bar code font; CIA EAN, CIA EAN Truncated, CIA UPC, CIA UPC Truncated, CIA Code 39 Medium Text, CIA Codabar Medium Text.

Example bar code printing

Bar codes can be aligned; left, center or right. You can print human readable text below or above the bar code. Human readable text can be aligned; left, center or right.

PrintBarcodeAt() prints two strings (bar code string and human readable string), using two named fonts at the current position.

Note: The red line shows the print position.

PrintStringAt() prints a string, using a named font at a given position.

PrintString() prints a string, using a named font at the current position. 

 

 


Copyright 2000 CIA (BAR CODES) UK. All rights reserved. Reproduction prohibited.