IReceiptOrSlipJob.PrintBarcode 方法

定义

向打印作业添加指令,以使用指定的数据和符号在收据或单据打印机站上打印条形码。

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)

参数

data
String

Platform::String

winrt::hstring

要表示为条形码的数据。

symbology
UInt32

unsigned int

uint32_t

符号系统 (条形码的编码) 。

height
UInt32

unsigned int

uint32_t

条形码的高度(以像素为单位)。

width
UInt32

unsigned int

uint32_t

条形码的宽度(以像素为单位)。

textPosition
PosPrinterBarcodeTextPosition

条形码文本相对于条形码的垂直位置。

alignment
PosPrinterAlignment

页面上条形码的水平对齐方式。

适用于

另请参阅