Share via


FiscalPrinter.BeginFiscalDocument Method (POS for .NET v1.14 SDK Documentation)

3/2/2014

Starts fiscal printing to the slip station.

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

Syntax

'Declaration
Public MustOverride Sub BeginFiscalDocument ( _
    documentAmount As Integer _
)
public abstract void BeginFiscalDocument (
    int documentAmount
)
public:
virtual void BeginFiscalDocument (
    int documentAmount
) abstract
public abstract void BeginFiscalDocument (
    int documentAmount
)
public abstract function BeginFiscalDocument (
    documentAmount : int
)

Parameters

  • documentAmount
    Amount of document to be stored by the printer.

Remarks

The BeginFiscalDocument method is supported only if the CapSlpFiscalDocument property is true.

The slip paper must be inserted into the slip station by using the BeginInsertion and EndInsertion methods before it calls this method.

Each fiscal line is printed by using the PrintFiscalDocumentLine method.

The BeginFiscalDocument method may cause a PosControlException to be thrown with the following ErrorCode.

Value

Description

Busy

Cannot perform while output is in progress.

Illegal

One of the following errors occurred:

  • The slip station does not exist (see the CapSlpPresent property).

  • The printer does not support fiscal output to the slip station (see the CapSlpFiscalDocument property).

Extended

One of the following errors occurred:

  • ExtendedErrorWrongState. The printer's current state does not allow this state transition.

  • ExtendedErrorSlipEmpty. There is no paper in the slip station.

  • ExtendedErrorBadItemAmount. The documentAmount parameter is invalid.

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
EndFiscalDocument
PrintFiscalDocumentLine
AmountDecimalPlaces