FiscalPrinter.PrintRecVoid Method
2/27/2008
Cancels the current receipt.
Namespace: Microsoft.PointOfService
Assembly: Microsoft.PointOfService (in microsoft.pointofservice.dll)
Syntax
'Declaration
Public MustOverride Sub PrintRecVoid ( _
description As String _
)
public abstract void PrintRecVoid (
string description
)
public:
virtual void PrintRecVoid (
String^ description
) abstract
public abstract void PrintRecVoid (
String description
)
public abstract function PrintRecVoid (
description : String
)
Parameters
- description
The text that describes the void.
Remarks
The receipt is annulled but it is not physically canceled from the printer’s fiscal memory because fiscal receipts are printed with an increasing serial number and totals are accumulated in registers. When a receipt is canceled, its subtotal is subtracted from the totals registers, but it is added to the canceled receipt register.
Some fixed text, together with the description, are printed on the receipt and journal to indicate that the receipt has been canceled.
PrintRecVoid is performed synchronously if AsyncMode is false, and asynchronously if AsyncMode is true.
If PrintRecVoid is successful, the PrinterState property is set to FiscalReceiptEnding.
PrintRecVoid may cause a PosControlException to be thrown with one of the following values:
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 FiscalReceipt 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.) |
ExtendedErrorSlipEmpty |
The slip station was specified, but a form is not inserted. (Applies only if AsyncMode is false.) |
ExtendedErrorBadItemDescription |
The description 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
FiscalPrinter.PrintRecCash Method
PrintRecItem
PrintRecItem
PrintRecItemAdjustment
FiscalPrinter.PrintRecItemAdjustment Method
PrintRecItemFuel
PrintRecItemFuel
PrintRecItemFuelVoid
FiscalPrinter.PrintRecItemFuelVoid Method
FiscalPrinter.PrintRecMessage Method
FiscalPrinter.PrintRecNotPaid Method
PrintRecPackageAdjustment
PrintRecPackageAdjustVoid
PrintRecRefund
FiscalPrinter.PrintRecRefund Method
PrintRecRefundVoid
FiscalPrinter.PrintRecRefundVoid Method
FiscalPrinter.PrintRecSubtotal Method
FiscalPrinter.PrintRecSubtotalAdjustment Method
FiscalPrinter.PrintRecSubtotalAdjustVoid Method
FiscalPrinter.PrintRecTaxId Method
FiscalPrinter.PrintRecTotal Method