Share via


PosPrinter.PrintTwoNormal Method

2/27/2008

Prints two strings on two print stations concurrently. When supported, this may give increased print performance.

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

Syntax

'Declaration
Public MustOverride Sub PrintTwoNormal ( _
    stations As PrinterStation, _
    data1 As String, _
    data2 As String _
)
public abstract void PrintTwoNormal (
    PrinterStation stations,
    string data1,
    string data2
)
public:
virtual void PrintTwoNormal (
    PrinterStation stations, 
    String^ data1, 
    String^ data2
) abstract
public abstract void PrintTwoNormal (
    PrinterStation stations, 
    String data1, 
    String data2
)
public abstract function PrintTwoNormal (
    stations : PrinterStation, 
    data1 : String, 
    data2 : String
)

Parameters

  • stations
    The printer stations to be used. Possible values are defined by the PrinterStation enumeration. Valid values are as follows: PrinterStation.TwoReceiptJournal, PrinterStation.TwoSlipJournal, or PrinterStation.TwoSlipReceipt.
  • data1
    The characters to be printed on the first station. May consist of printable characters and escape sequences as listed in the PosPrinter topic. The characters must all fit on one printed line so that the printer may try to print on both stations concurrently.
  • data2
    The characters to be printed on the second station. (Restrictions are the same as data1.) If this string is the empty string (""), then print the same data as data1. On some printers, by using this format may give additional increased print performance.

Remarks

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

The sequence of stations in the stations parameter (as defined by the value from the PrinterStation enumeration) does not imply the physical printing sequence on the stations. The physical sequence depends on the printer, and may be different based on bidirectional printing, multiple print heads, and so on.

Before it calls this method, the application must open, claim, and enable the device.

PrintTwoNormal may throw a PosControlException with the following ErrorCodes:

Value

Meaning

Busy

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

Illegal

One of the following conditions has occurred:

  • The requested print operation is not supported in the current rotation mode.

  • The specified station does not support concurrent printing (that is, the appropriate CapConcurrentJrnRec, CapConcurrentJrnSlp, CapConcurrentRecSlp property is set to false).

  • The printer is currently in Insertion mode.

  • The printer is currently in Removal mode.

Extended

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

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

ExtendedErrorJrnCartridgeEmpty: A journal cartridge is empty. (Can be returned only if AsyncMode is false.)

ExtendedErrorJrnCartridgeRemoved: A journal cartridge is removed. (Can be returned only if AsyncMode is false.)

ExtendedErrorJrnHeadCleaning: A journal head is being cleaned. (Can be returned only if AsyncMode is false.)

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

ExtendedErrorRecCartridgeEmpty: A receipt cartridge is empty. (Can be returned only if AsyncMode is false.)

ExtendedErrorRecCartridgeRemoved: A receipt cartridge is removed. (Can be returned only if AsyncMode is false.)

ExtendedErrorRecHeadCleaning: A receipt head is being cleaned. (Can be returned only if AsyncMode is false.)

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

ExtendedErrorSlpCartridgeEmpty: A slip cartridge is empty. (Can be returned only if AsyncMode is false.)

ExtendedErrorSlpCartridgeRemoved: A slip cartridge is removed. (Can be returned only if AsyncMode is false.)

ExtendedErrorSlpHeadCleaning: A slip head is being cleaned. (Can be returned only 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

PosPrinter Class
PosPrinter Members
Microsoft.PointOfService Namespace
CapConcurrentJrnRec
CapConcurrentJrnSlp
CapConcurrentRecSlp
PrinterStation