Share via


PointCardRW.PrintWrite Method

Prints the specified data on the printing area of the point card, writes data from the WriteXData properties to the magnetic tracks, or both.

Namespace: Microsoft.PointOfService
Assembly: Microsoft.PointOfService (in microsoft.pointofservice.dll)

Usage

'Usage
Dim kind As PointCardAreas
Dim horizontalPosition As Integer
Dim verticalPosition As Integer
Dim data As String
Dim pointCardRW1 As PointCardRW
pointCardRW1.PrintWrite(kind, horizontalPosition, verticalPosition, data)

Syntax

'Declaration
Public MustOverride Sub PrintWrite( _
    ByVal kind As PointCardAreas, _
    ByVal horizontalPosition As Integer, _
    ByVal verticalPosition As Integer, _
    ByVal data As String _
)
public abstract void PrintWrite(
    PointCardAreas kind,
    int horizontalPosition,
    int verticalPosition,
    string data
);
public: abstract Void PrintWrite(
    PointCardAreas^ kind,
    Int32 horizontalPosition,
    Int32 verticalPosition,
    String^ data
);
public abstract void PrintWrite(
    PointCardAreas kind,
    int horizontalPosition,
    int verticalPosition,
    System.String data
);
public abstract function PrintWrite(
     kind : PointCardAreas,
     horizontalPosition : int,
     verticalPosition : int,
     data : String
) : Void;

Parameters

  • kind
    Designates the effect of the point card.
  • horizontalPosition
    The horizontal start position for printing. The value is in MapMode units if CapPrintMode is TRUE.
  • verticalPosition
    The vertical start position for printing. The value is in MapMode units if CapPrintMode is TRUE.
  • data
    The data to print. Any escape sequences in the data are dependent upon the capabilities of the device.The format of this data depends upon the value of the BinaryConversion property.

Remarks

To print on a point card, the CapPrint property must be TRUE. To write the magnetic tracks on a point card, the WriteXData properties for each track must be set to the desired value, the TracksToWrite property must be set to a bitmask indicating which tracks to write (see TracksToWrite for a complete description), and the CapTracksToWrite property must indicate that each track specified in TracksToWrite is legal.

PrintWrite returns void if successful, and can throw the following exceptions:

Value

Meaning

Illegal

The Point Card Reader/Writer is not in point card ejection mode.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows Longhorn, and Windows 2000

Target Platforms

See Also

Reference

PointCardRW Class
PointCardRW Members
Microsoft.PointOfService Namespace
CapTracksToWrite
CapPrint
CapPrintMode
Write1Data
Write2Data
Write3Data
Write4Data
Write5Data
Write6Data
TracksToWrite