Share via


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

3/2/2014

Prints a line of a fixed document to the print station specified in the BeginFixedOutput method.

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

Syntax

'Declaration
Public MustOverride Sub PrintFixedOutput ( _
    documentType As Integer, _
    lineNumber As Integer, _
    data As String _
)
public abstract void PrintFixedOutput (
    int documentType,
    int lineNumber,
    string data
)
public:
virtual void PrintFixedOutput (
    int documentType, 
    int lineNumber, 
    String^ data
) abstract
public abstract void PrintFixedOutput (
    int documentType, 
    int lineNumber, 
    String data
)
public abstract function PrintFixedOutput (
    documentType : int, 
    lineNumber : int, 
    data : String
)

Parameters

  • documentType
    Identifier of a document stored in the printer.
  • lineNumber
    Number of the line in the document to print.
  • data
    String parameter for placement in printed line.

Remarks

Each call prints a single line from a document by merging the stored text with the parameter data. Within a document, lines must be printed sequentially. Some lines are optional and some lines are required, such as the first and last lines.

PrintFixedOutput is supported only if CapFixedOutput is true.

The printer state is set to FixedOutput.

PrintFixedOutput is performed synchronously if AsyncMode is false, and asynchronously if AsyncMode is true.

PrintFixedOutput may cause a PosControlException to be thrown with one of the following ErrorCodes:

Value

Description

Busy

Cannot perform while output is in progress. (Can be returned only if AsyncMode is false.)

Illegal

One of the following errors occurred:

  • The printer does not support fixed output (see the CapFixedOutput property).

  • The LineNumber is invalid.

ExtendedErrorWrongState:

The printer is not in the FixedOutput 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 was specified but is out of paper. (Can be returned only if AsyncMode is false.)

ExtendedErrorSlipEmpty:

The slip station was specified, but a form is not inserted. (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.BeginFixedOutput Method
FiscalPrinter.EndFixedOutput Method