Share via


IReceiptOrSlipJob.PrintBarcode Method

Definition

Adds an instruction to the print job to print a barcode on the receipt or slip printer station with the specified data and symbology.

public:
 void PrintBarcode(Platform::String ^ data, unsigned int symbology, unsigned int height, unsigned int width, PosPrinterBarcodeTextPosition textPosition, PosPrinterAlignment alignment);
void PrintBarcode(winrt::hstring const& data, uint32_t const& symbology, uint32_t const& height, uint32_t const& width, PosPrinterBarcodeTextPosition const& textPosition, PosPrinterAlignment const& alignment);
public void PrintBarcode(string data, uint symbology, uint height, uint width, PosPrinterBarcodeTextPosition textPosition, PosPrinterAlignment alignment);
function printBarcode(data, symbology, height, width, textPosition, alignment)
Public Sub PrintBarcode (data As String, symbology As UInteger, height As UInteger, width As UInteger, textPosition As PosPrinterBarcodeTextPosition, alignment As PosPrinterAlignment)

Parameters

data
String

Platform::String

winrt::hstring

The data to represent as a barcode.

symbology
UInt32

unsigned int

uint32_t

The symbology (encoding) of the barcode.

height
UInt32

unsigned int

uint32_t

The height of the barcode, in pixels.

width
UInt32

unsigned int

uint32_t

The width of the barcode, in pixels.

textPosition
PosPrinterBarcodeTextPosition

The vertical position of the barcode text relative to the barcode.

alignment
PosPrinterAlignment

The horizontal alignment of the barcode on the page.

Applies to

See also