ReceiptPrintJob ReceiptPrintJob ReceiptPrintJob ReceiptPrintJob ReceiptPrintJob Class

Definition

Represents a set of printing instructions that you want to run on the receipt printer.

public : sealed class ReceiptPrintJob : IPosPrinterJob, IReceiptOrSlipJob
struct winrt::Windows::Devices::PointOfService::ReceiptPrintJob : IPosPrinterJob, IReceiptOrSlipJob
public sealed class ReceiptPrintJob : IPosPrinterJob, IReceiptOrSlipJob
Public NotInheritable Class ReceiptPrintJob Implements IPosPrinterJob, IReceiptOrSlipJob
// This class does not provide a public constructor.
Attributes

Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

To create a new print job for the receipt printer, call ClaimedReceiptPrinter.CreateJob. The created print job object is valid as long as the ClaimedReceiptPrinter object that created it is valid.

Version history

Windows version SDK version Value added
1903 18362 FeedPaperByLine
1903 18362 FeedPaperByMapModeUnit
1903 18362 Print(String,PosPrinterPrintOptions)
1903 18362 StampPaper

Methods

CutPaper() CutPaper() CutPaper() CutPaper() CutPaper()

Adds an instruction to the printer job to cut the receipt paper completely.

CutPaper(Double) CutPaper(Double) CutPaper(Double) CutPaper(Double) CutPaper(Double)

Adds an instruction to the printer job to cut the specified percentage of the receipt paper.

DrawRuledLine(String, PosPrinterLineDirection, UInt32, PosPrinterLineStyle, UInt32) DrawRuledLine(String, PosPrinterLineDirection, UInt32, PosPrinterLineStyle, UInt32) DrawRuledLine(String, PosPrinterLineDirection, UInt32, PosPrinterLineStyle, UInt32) DrawRuledLine(String, PosPrinterLineDirection, UInt32, PosPrinterLineStyle, UInt32) DrawRuledLine(String, PosPrinterLineDirection, UInt32, PosPrinterLineStyle, UInt32)

Adds an instruction to the print job to print a drawn, ruled line on the paper of the receipt printer station.

ExecuteAsync() ExecuteAsync() ExecuteAsync() ExecuteAsync() ExecuteAsync()

Runs the print job on the receipt printer station asynchronously.

FeedPaperByLine(Int32) FeedPaperByLine(Int32) FeedPaperByLine(Int32) FeedPaperByLine(Int32) FeedPaperByLine(Int32)

Adds an instruction to the print job to feed paper by line on the receipt printer station.

FeedPaperByMapModeUnit(Int32) FeedPaperByMapModeUnit(Int32) FeedPaperByMapModeUnit(Int32) FeedPaperByMapModeUnit(Int32) FeedPaperByMapModeUnit(Int32)

Adds an instruction to the print job to feed paper by map mode unit on the receipt printer station.

MarkFeed(PosPrinterMarkFeedKind) MarkFeed(PosPrinterMarkFeedKind) MarkFeed(PosPrinterMarkFeedKind) MarkFeed(PosPrinterMarkFeedKind) MarkFeed(PosPrinterMarkFeedKind)

Adds an instruction to the printer job to use the mark sensor of the receipt printer station to position the receipt paper.

Print(String) Print(String) Print(String) Print(String) Print(String)

Adds an instruction to the print job to print the specified text on the receipt printer station.

Print(String, PosPrinterPrintOptions) Print(String, PosPrinterPrintOptions) Print(String, PosPrinterPrintOptions) Print(String, PosPrinterPrintOptions) Print(String, PosPrinterPrintOptions)

Adds an instruction to the print job to print the specified text and options on the receipt printer station.

PrintBarcode(String, UInt32, UInt32, UInt32, PosPrinterBarcodeTextPosition, PosPrinterAlignment) PrintBarcode(String, UInt32, UInt32, UInt32, PosPrinterBarcodeTextPosition, PosPrinterAlignment) PrintBarcode(String, UInt32, UInt32, UInt32, PosPrinterBarcodeTextPosition, PosPrinterAlignment) PrintBarcode(String, UInt32, UInt32, UInt32, PosPrinterBarcodeTextPosition, PosPrinterAlignment) PrintBarcode(String, UInt32, UInt32, UInt32, PosPrinterBarcodeTextPosition, PosPrinterAlignment)

Adds an instruction to the print job to print a barcode with the specified data and symbology on the receipt printer station.

PrintBarcodeCustomAlign(String, UInt32, UInt32, UInt32, PosPrinterBarcodeTextPosition, UInt32) PrintBarcodeCustomAlign(String, UInt32, UInt32, UInt32, PosPrinterBarcodeTextPosition, UInt32) PrintBarcodeCustomAlign(String, UInt32, UInt32, UInt32, PosPrinterBarcodeTextPosition, UInt32) PrintBarcodeCustomAlign(String, UInt32, UInt32, UInt32, PosPrinterBarcodeTextPosition, UInt32) PrintBarcodeCustomAlign(String, UInt32, UInt32, UInt32, PosPrinterBarcodeTextPosition, UInt32)

Adds an instruction to the print job to print a barcode with the specified data, symbology, and custom alignment on the receipt printer station.

PrintBitmap(BitmapFrame, PosPrinterAlignment) PrintBitmap(BitmapFrame, PosPrinterAlignment) PrintBitmap(BitmapFrame, PosPrinterAlignment) PrintBitmap(BitmapFrame, PosPrinterAlignment) PrintBitmap(BitmapFrame, PosPrinterAlignment)

Adds an instruction to the print job to print the specified bitmap with the specified standard horizontal placement on the receipt printer station.

PrintBitmap(BitmapFrame, PosPrinterAlignment, UInt32) PrintBitmap(BitmapFrame, PosPrinterAlignment, UInt32) PrintBitmap(BitmapFrame, PosPrinterAlignment, UInt32) PrintBitmap(BitmapFrame, PosPrinterAlignment, UInt32) PrintBitmap(BitmapFrame, PosPrinterAlignment, UInt32)

Adds an instruction to the print job to print the specified bitmap with the specified width and a standard horizontal placement on the receipt printer station.

PrintCustomAlignedBitmap(BitmapFrame, UInt32) PrintCustomAlignedBitmap(BitmapFrame, UInt32) PrintCustomAlignedBitmap(BitmapFrame, UInt32) PrintCustomAlignedBitmap(BitmapFrame, UInt32) PrintCustomAlignedBitmap(BitmapFrame, UInt32)

Adds an instruction to the print job to print the specified bitmap at the specified distance from the leftmost print column on the receipt printer station.

PrintCustomAlignedBitmap(BitmapFrame, UInt32, UInt32) PrintCustomAlignedBitmap(BitmapFrame, UInt32, UInt32) PrintCustomAlignedBitmap(BitmapFrame, UInt32, UInt32) PrintCustomAlignedBitmap(BitmapFrame, UInt32, UInt32) PrintCustomAlignedBitmap(BitmapFrame, UInt32, UInt32)

Adds an instruction to the print job to print the specified bitmap with the specified width and at the specified distance from the leftmost print column on the receipt printer station.

PrintLine() PrintLine() PrintLine() PrintLine() PrintLine()

Adds an instruction to the print job to print a newline character on the receipt printer station.

PrintLine(String) PrintLine(String) PrintLine(String) PrintLine(String) PrintLine(String)

Adds an instruction to the print job to print a line of text on the receipt printer station.

PrintSavedBitmap(UInt32) PrintSavedBitmap(UInt32) PrintSavedBitmap(UInt32) PrintSavedBitmap(UInt32) PrintSavedBitmap(UInt32)

Adds an instruction to the print job to print a bitmap on the receipt printer station by using the bitmap and information saved to the printer via SetBitmap or SetCustomAlignedBitmap.

SetBarcodeRotation(PosPrinterRotation) SetBarcodeRotation(PosPrinterRotation) SetBarcodeRotation(PosPrinterRotation) SetBarcodeRotation(PosPrinterRotation) SetBarcodeRotation(PosPrinterRotation)

Sets the rotation of the barcode on the page on the receipt printer station.

SetBitmap(UInt32, BitmapFrame, PosPrinterAlignment) SetBitmap(UInt32, BitmapFrame, PosPrinterAlignment) SetBitmap(UInt32, BitmapFrame, PosPrinterAlignment) SetBitmap(UInt32, BitmapFrame, PosPrinterAlignment) SetBitmap(UInt32, BitmapFrame, PosPrinterAlignment)

Saves information about a bitmap and a standard horizontal placement that you want to use to print that bitmap on the receipt printer station, so that you can use the PrintSavedBitmap method to add that information to the print job later.

SetBitmap(UInt32, BitmapFrame, PosPrinterAlignment, UInt32) SetBitmap(UInt32, BitmapFrame, PosPrinterAlignment, UInt32) SetBitmap(UInt32, BitmapFrame, PosPrinterAlignment, UInt32) SetBitmap(UInt32, BitmapFrame, PosPrinterAlignment, UInt32) SetBitmap(UInt32, BitmapFrame, PosPrinterAlignment, UInt32)

Saves information about a bitmap, along with the width and a standard horizontal placement that you want to use to print that bitmap on the receipt printer station, so that you can use the PrintSavedBitmap method to add that information to the print job later.

SetCustomAlignedBitmap(UInt32, BitmapFrame, UInt32) SetCustomAlignedBitmap(UInt32, BitmapFrame, UInt32) SetCustomAlignedBitmap(UInt32, BitmapFrame, UInt32) SetCustomAlignedBitmap(UInt32, BitmapFrame, UInt32) SetCustomAlignedBitmap(UInt32, BitmapFrame, UInt32)

Saves information about a bitmap and the distance from the leftmost print column at which you want to print that bitmap on the receipt printer station, so that you can use the PrintSavedBitmap method to add that information to the print job later.

SetCustomAlignedBitmap(UInt32, BitmapFrame, UInt32, UInt32) SetCustomAlignedBitmap(UInt32, BitmapFrame, UInt32, UInt32) SetCustomAlignedBitmap(UInt32, BitmapFrame, UInt32, UInt32) SetCustomAlignedBitmap(UInt32, BitmapFrame, UInt32, UInt32) SetCustomAlignedBitmap(UInt32, BitmapFrame, UInt32, UInt32)

Saves information about a bitmap, along with the width and the distance from the leftmost print column that you want to use to print that bitmap on the receipt printer station, so that you can use the PrintSavedBitmap method to add that information to the print job later.

SetPrintArea(Rect) SetPrintArea(Rect) SetPrintArea(Rect) SetPrintArea(Rect) SetPrintArea(Rect)

Sets the area of the page on which the receipt printer station can print the job.

SetPrintRotation(PosPrinterRotation, Boolean) SetPrintRotation(PosPrinterRotation, Boolean) SetPrintRotation(PosPrinterRotation, Boolean) SetPrintRotation(PosPrinterRotation, Boolean) SetPrintRotation(PosPrinterRotation, Boolean)

Sets the rotation of the text or image on the page for the receipt printer station.

StampPaper() StampPaper() StampPaper() StampPaper() StampPaper()

Adds an instruction to the print job to stamp on the receipt printer station.

See also