Print Bar Codes

The LinePrinter class supports the following method to print bar codes:

public void writeBarcode(int aSymbology, String aData, int aSize, int aXOffset) throws LinePrinterException

The aSymbology parameter selects the bar code symbology to be printed.

The aData parameter is a string specifying the data to be contained in the bar code.

The unit of measurement for aSize and aXOffset is printhead dots.

For more information on supported symbologies and printhead width, see the user manual for your printer.