PosPrinterBase.PrintNormal Method (POS for .NET v1.12 SDK Documentation)

2/27/2008

Prints the string specified in data on the printer station specified in station.

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

Syntax

'Declaration
Public Overrides Sub PrintNormal ( _
    station As PrinterStation, _
    data As String _
)
public override void PrintNormal (
    PrinterStation station,
    string data
)
public:
virtual void PrintNormal (
    PrinterStation station, 
    String^ data
) override
public void PrintNormal (
    PrinterStation station, 
    String data
)
public override function PrintNormal (
    station : PrinterStation, 
    data : String
)

Parameters

  • station
    The PrinterStation to use. May be Receipt , Journal, JournalReceipt, or Slip.
  • data
    The characters to print, consisting mostly of printable characters.

Remarks

The PosPrinterBase class verifies that the application has the device opened, claimed, and enabled. PosPrinterBase validates the parameters and device state, and may throw PosControlException exceptions with the following values:

Value

Meaning

Other values

A physical condition exists that would preclude the operation—for example, the cover is open, the paper is removed, and so on. A full list of these exceptions is provided under PosPrinter.PrintImmediate.

Busy

the State property is set to ControlState.Busy (applies only if the AsyncMode property has been set to false); or

Illegal

a) the requested printer station isn’t PrinterStation.Receipt, PrinterStation.Journal, or PrinterStation.Slip; or b) the requested printer station doesn’t exist (that is, the value of the CapRecPresent, CapJrnPresent, or CapSlpPresent property is false).

If no exception is thrown, the PosPrinterBase class calls PrintNormalImpl and updates statistics based on the values returned in the PrintResults class.

PrintNormalImpl is performed synchronously if AsyncMode is false, and asynchronously if AsyncMode is true.

See PrintNormal for additional information about the contents of the data argument.

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

PosPrinterBase Class
PosPrinterBase Members
Microsoft.PointOfService.BaseServiceObjects Namespace
PosPrinter.PrintNormal Method
PrintNormalImpl