Generates and prints the specified bar code.
public void WriteBarcode(BarcodeSymbology symbology, string data, UInt32 size, UInt32 xOffset);
Parameter | Description |
---|---|
BarcodeSymbology symbology | A BarcodeSymbology enum specifying the bar code type to print. |
string data | A string specifying the data to be contained in the bar code. |
UInt32 size | An unsigned integer value specifying the size of the bar code. Size can have different meanings depending on the symbology selected. For 1D symbologies like Code 39, size is the height of the bar code in printhead dots. |
UInt32 xOffset | An unsigned integer value specifying the horizontal offset in printhead dots from the left of the page where the graphic will be printed. |
The unit of measurement for the xOffset parameter is printhead dots. Refer to the specific printer User Manual for the media width in printhead dots. For example, the media width of the PR2 printers is 384 printhead dots.