PointCardRW.PrintWrite Method
2/27/2008
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)
Syntax
'Declaration
Public MustOverride Sub PrintWrite ( _
kind As PointCardAreas, _
horizontalPosition As Integer, _
verticalPosition As Integer, _
data As String _
)
public abstract void PrintWrite (
PointCardAreas kind,
int horizontalPosition,
int verticalPosition,
string data
)
public:
virtual void PrintWrite (
PointCardAreas kind,
int horizontalPosition,
int verticalPosition,
String^ data
) abstract
public abstract void PrintWrite (
PointCardAreas kind,
int horizontalPosition,
int verticalPosition,
String data
)
public abstract function PrintWrite (
kind : PointCardAreas,
horizontalPosition : int,
verticalPosition : int,
data : String
)
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 depends on the capabilities of the device.
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 that indicates 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 may throw a PosControlException exception with the following ErrorCodes:
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.
See Also
Reference
PointCardRW Class
PointCardRW Members
Microsoft.PointOfService Namespace
CapTracksToWrite
CapPrint
CapPrintMode
Write1Data
Write2Data
Write3Data
Write4Data
Write5Data
Write6Data
TracksToWrite