共用方式為


PosPrinter.PrintBarCode Method

Definition

Prints a bar code on the specified printer station.

public abstract void PrintBarCode (Microsoft.PointOfService.PrinterStation station, string data, Microsoft.PointOfService.BarCodeSymbology symbology, int height, int width, int alignment, Microsoft.PointOfService.BarCodeTextPosition textPosition);
abstract member PrintBarCode : Microsoft.PointOfService.PrinterStation * string * Microsoft.PointOfService.BarCodeSymbology * int * int * int * Microsoft.PointOfService.BarCodeTextPosition -> unit
Public MustOverride Sub PrintBarCode (station As PrinterStation, data As String, symbology As BarCodeSymbology, height As Integer, width As Integer, alignment As Integer, textPosition As BarCodeTextPosition)

Parameters

station
PrinterStation

The printer station to be used. Possible values are defined by the PrinterStation enumeration. Valid values are PrinterStation.Receipt or PrinterStation.Slip.

data
String

Character string to be bar-coded.

symbology
BarCodeSymbology

Bar code symbol type to use. Possible values are defined by the BarCodeSymbology enumeration.

height
Int32

Bar code height. Expressed in the unit of measure indicated by the MapMode property.

width
Int32

Bar code width. Expressed in the unit of measure indicated by the MapMode property.

alignment
Int32

Placement of the bar code. For possible values, see Remarks in this topic.

textPosition
BarCodeTextPosition

Placement of the readable character string. Possible values are defined by the BarCodeTextPosition enumeration.

Applies to