Share via


FiscalPrinter.EndFiscalReceipt Method

2/27/2008

Stops fiscal printing to the receipt station.

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

Syntax

'Declaration
Public MustOverride Sub EndFiscalReceipt ( _
    printHeader As Boolean _
)
public abstract void EndFiscalReceipt (
    bool printHeader
)
public:
virtual void EndFiscalReceipt (
    bool printHeader
) abstract
public abstract void EndFiscalReceipt (
    boolean printHeader
)
public abstract function EndFiscalReceipt (
    printHeader : boolean
)

Parameters

  • printHeader
    Indicates whether to print the header lines currently.

Remarks

If printHeader is false, EndFiscalReceipt closes the current fiscal receipt, cuts it, and prints the trailer lines and fiscal logotype, if they were not already printed after the total lines. All functions performed by EndFiscalReceipt are completed before this call returns.

If EndFiscalReceipt is successful, the PrinterState property is changed to Monitor.

EndFiscalReceipt may cause a PosControlException to be thrown with the following ErrorCode:

Value

Description

Busy

Cannot perform while output is in progress.

ExtendedErrorWrongState

The printer is not in the Fiscal Receipt Ending state.

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
PrintRec…