Share via


SlipPrintJob Class

Definition

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

public ref class SlipPrintJob sealed : IReceiptOrSlipJob
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class SlipPrintJob final : IReceiptOrSlipJob
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class SlipPrintJob final : IReceiptOrSlipJob
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class SlipPrintJob : IReceiptOrSlipJob
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class SlipPrintJob : IReceiptOrSlipJob
Public NotInheritable Class SlipPrintJob
Implements IReceiptOrSlipJob
Inheritance
Object Platform::Object IInspectable SlipPrintJob
Attributes
Implements

Windows requirements

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

Remarks

To create a new print job for the slip printer, call ClaimedSlipPrinter.CreateJob. The created print job object is valid as long as the ClaimedSlipPrinter 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)

Methods

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

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

ExecuteAsync()

Runs the print job on the slip printer station asynchronously.

FeedPaperByLine(Int32)

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

FeedPaperByMapModeUnit(Int32)

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

Print(String, PosPrinterPrintOptions)

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

Print(String)

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

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

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

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

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

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 slip printer station.

PrintBitmap(BitmapFrame, PosPrinterAlignment)

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

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 slip printer station.

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 slip printer station.

PrintLine()

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

PrintLine(String)

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

PrintSavedBitmap(UInt32)

Adds an instruction to the print job to print a bitmap on the slip printer station by using the information that you saved about the bitmap and how to print it when you called the SetBitmap or SetCustomAlignedBitmap method.

SetBarcodeRotation(PosPrinterRotation)

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

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 slip printer station, so that you can use the PrintSavedBitmap method to add that information to the print job later.

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 slip printer station, so that you can use the PrintSavedBitmap method to add that information to the print job later.

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 slip printer station, so that you can use the PrintSavedBitmap method to add that information to the print job later.

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 slip printer station, so that you can use the PrintSavedBitmap method to add that information to the print job later.

SetPrintArea(Rect)

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

SetPrintRotation(PosPrinterRotation, Boolean)

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

Applies to

See also