Share via


FiscalPrinter.PrintRecMessage Method

2/27/2008

Prints a message on the fiscal receipt.

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

Syntax

'Declaration
Public MustOverride Sub PrintRecMessage ( _
    message As String _
)
public abstract void PrintRecMessage (
    string message
)
public:
virtual void PrintRecMessage (
    String^ message
) abstract
public abstract void PrintRecMessage (
    String message
)
public abstract function PrintRecMessage (
    message : String
)

Parameters

  • message
    Text message to print.

Remarks

The length of an individual message is limited to the number of characters given in the MessageLength property.

This method is supported only if CapAdditionalLines is true.

This method is supported only when the printer is in the FiscalReceiptEnding state.

This method is performed synchronously if AsyncMode is false, and asynchronously if AsyncMode is true.

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

Value

Description

Busy

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

ExtendedErrorWrongState:

The printer is not in the FiscalReceiptEnding state.

ExtendedErrorCoverOpen:

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

ExtendedErrorJournalEmpty:

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

ExtendedErrorReceiptEmpty:

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

ExtendedErrorBadItemDescription:

The message is too long or contains a reserved word. (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

FiscalPrinter Class
FiscalPrinter Members
Microsoft.PointOfService Namespace
FiscalPrinter.BeginFiscalReceipt Method
FiscalPrinter.EndFiscalReceipt Method
MessageLength
CapAdditionalLines
FiscalPrinter.PrintRecCash Method
PrintRecItem
PrintRecItem
PrintRecItemAdjustment
FiscalPrinter.PrintRecItemAdjustment Method
PrintRecItemFuel
PrintRecItemFuel
PrintRecItemFuelVoid
FiscalPrinter.PrintRecItemFuelVoid Method
PrintRecNotPaid
PrintRecPackageAdjustment
PrintRecPackageAdjustVoid
PrintRecRefund
PrintRecRefund
PrintRecRefundVoid
PrintRecRefundVoid
PrintRecSubtotal
PrintRecSubtotalAdjustment
PrintRecSubtotalAdjustVoid
PrintRecTaxId
PrintRecTotal
PrintRecVoid