SlipPrintJob.PrintBarcode Method

Definition

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

public:
 virtual void PrintBarcode(Platform::String ^ data, unsigned int symbology, unsigned int height, unsigned int width, PosPrinterBarcodeTextPosition textPosition, PosPrinterAlignment alignment) = PrintBarcode;
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

The data to represent as a barcode.

symbology
UInt32

uint32_t

The symbology (encoding) of the barcode.

height
UInt32

uint32_t

The height of the barcode, in pixels.

width
UInt32

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.

Implements

M:Windows.Devices.PointOfService.IReceiptOrSlipJob.PrintBarcode(System.String,System.UInt32,System.UInt32,System.UInt32,Windows.Devices.PointOfService.PosPrinterBarcodeTextPosition,Windows.Devices.PointOfService.PosPrinterAlignment) M:Windows.Devices.PointOfService.IReceiptOrSlipJob.PrintBarcode(System.String,uint32_t,uint32_t,uint32_t,Windows.Devices.PointOfService.PosPrinterBarcodeTextPosition,Windows.Devices.PointOfService.PosPrinterAlignment)

Applies to

See also