Share via


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

3/2/2014

Sets the POS and cashier identifiers.

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

Syntax

'Declaration
Public MustOverride Sub SetPosId ( _
    posId As String, _
    cashierId As String _
)
public abstract void SetPosId (
    string posId,
    string cashierId
)
public:
virtual void SetPosId (
    String^ posId, 
    String^ cashierId
) abstract
public abstract void SetPosId (
    String posId, 
    String cashierId
)
public abstract function SetPosId (
    posId : String, 
    cashierId : String
)

Parameters

  • posId
    Identifier for the POS system.
  • cashierId
    Identifier of the cashier.

Remarks

These values are printed when each fiscal receipt is closed.

SetPosId is supported only if CapSetPosId is true. SetPosId can be called only while DayOpened is false.

SetPosId may throw a PosControlException with the following ErrorCode:

Value

Description

Illegal

One of the following errors occurred:

  • The printer does not support setting the POS identifier (see the CapSetPosId property).

  • The printer has already begun the fiscal day (see the DayOpened property).

  • Either the pointOfServiceId or cashierID 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
CapSetPosId
DayOpened