FiscalPrinter.PrintRecCash Method (POS for .NET v1.14 SDK Documentation)
3/2/2014
Prints a cash-in or cash-out receipt amount on the station defined by the FiscalReceiptStation property.
Namespace: Microsoft.PointOfService
Assembly: Microsoft.PointOfService (in microsoft.pointofservice.dll)
Syntax
'Declaration
Public MustOverride Sub PrintRecCash ( _
amount As Decimal _
)
public abstract void PrintRecCash (
decimal amount
)
public:
virtual void PrintRecCash (
Decimal amount
) abstract
public abstract void PrintRecCash (
Decimal amount
)
public abstract function PrintRecCash (
amount : decimal
)
Parameters
- amount
Amount to be incremented or decremented.
Remarks
PrintRecCash is only allowed if CapFiscalReceiptType is true and the FiscalReceiptType property is set to CashIn or CashOut (replaces the FPTR_RT_CASH_IN and FPTR_RT_CASH_OUT UPOS constants) and the fiscal printer is in the Fiscal Receipt state.
PrintRecCash is performed synchronously if AsyncMode is false, and asynchronously if AsyncMode is true.
PrintRecCash may cause a PosControlException to be thrown with one of the following ErrorCodes:
Value |
Description |
Busy |
Cannot perform while output is in progress. (Applies only if AsyncMode is false.) |
Illegal |
The printer does not support this method. |
ExtendedErrorWrongState |
The printer is currently not in the Fiscal Receipt state. |
ExtendedErrorCoverOpen |
The printer cover is open. (Applies only if AsyncMode is false.) |
ExtendedErrorJournalEmpty |
The journal station is out of paper. (Applies only if AsyncMode is false.) |
ExtendedErrorReceiptEmpty |
The receipt station is out of paper. |
ExtendedErrorSlipEmpty |
The slip station was specified, but a form is not inserted. (Applies 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
FiscalReceiptStation
FiscalReceiptType