Share via


FiscalPrinter.PrintNormal Method (POS for .NET v1.14 SDK Documentation)

3/2/2014

Prints data on the printer station.

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

Syntax

'Declaration
Public MustOverride Sub PrintNormal ( _
    station As FiscalPrinterStations, _
    data As String _
)
public abstract void PrintNormal (
    FiscalPrinterStations station,
    string data
)
public:
virtual void PrintNormal (
    FiscalPrinterStations station, 
    String^ data
) abstract
public abstract void PrintNormal (
    FiscalPrinterStations station, 
    String data
)
public abstract function PrintNormal (
    station : FiscalPrinterStations, 
    data : String
)

Parameters

  • station
    The printer station to use (Receipt, Journal, JournalReceipt, or Slip).
  • data
    The characters to print, consisting mostly of printable characters.

Remarks

PrintNormal performs nonfiscal printing. Escape sequences, carriage returns (13 decimal), and new line / line feed (10 decimal) are available on some printers, but frequently these are not supported.

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

Special character values within data is as follows:

Value

Description

New line / Line Feed (10 Decimal)

Print any data in the line buffer, and feed to the next print line. (A carriage return is not required in order to cause the line to be printed.)

Carriage Return (13 Decimal)

If a carriage return immediately comes before a line feed, or if the line buffer is empty, then it is ignored.

Otherwise, the line buffer is printed and the printer does not feed to the next print line. On some printers, print without feed may be directly supported. On others, a print may always feed to the next line. In this case, the service object prints the line buffer and performs a reverse line feed if supported. If the printer does not support either of these features, carriage return functions like a line feed.

PrintNormal may cause a PosControlException to be thrown with one of the following ErrorCodes:

Value

Description

Busy

Cannot perform while output is in progress. (Can only be returned if AsyncMode is false.)

Illegal

The specified station does not exist. (See the CapSlpPresent property.)

ExtendedErrorWrongState

The printer is not in the NonFiscal state.

ExtendedErrorCoverOpen

The printer cover is open. (Can only be returned if AsyncMode is false.)

ExtendedErrorJournalEmpty

The journal station was specified but is out of paper. (Can only be returned if AsyncMode is false.)

ExtendedErrorReceiptEmpty

The receipt station was specified but is out of paper. (Can only be returned if AsyncMode is false.)

ExtendedErrorSlipEmpty

The slip station was specified, but a form is not inserted. (Can only be returned if AsyncMode is false.)

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

FiscalPrinter Class
FiscalPrinter Members
Microsoft.PointOfService Namespace
FiscalPrinter.BeginNonFiscal Method
FiscalPrinter.EndNonFiscal Method
AsyncMode