Share via


PosPrinterBase.PrintBarCode Method

Definition

Prints a bar code on the specified printer station.

public override void PrintBarCode (Microsoft.PointOfService.PrinterStation station, string data, Microsoft.PointOfService.BarCodeSymbology symbology, int height, int width, int alignment, Microsoft.PointOfService.BarCodeTextPosition textPosition);
override this.PrintBarCode : Microsoft.PointOfService.PrinterStation * string * Microsoft.PointOfService.BarCodeSymbology * int * int * int * Microsoft.PointOfService.BarCodeTextPosition -> unit
Public Overrides 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

The bar code data to be printed.

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.

alignment
Int32

Placement of the bar code. For possible values, see Remarks below.

textPosition
BarCodeTextPosition

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

Applies to