ReceiptPrintJob 類別

定義

代表您要在收據印表機上執行的一組列印指示。

public ref class ReceiptPrintJob sealed
public ref class ReceiptPrintJob 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 ReceiptPrintJob final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class ReceiptPrintJob 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 ReceiptPrintJob
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class ReceiptPrintJob : IReceiptOrSlipJob
Public NotInheritable Class ReceiptPrintJob
Public NotInheritable Class ReceiptPrintJob
Implements IReceiptOrSlipJob
繼承
Object Platform::Object IInspectable ReceiptPrintJob
屬性
實作

Windows 需求

裝置系列
Windows 10 (已於 10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v1.0 引進)

備註

若要建立收據印表機的新列印工作,請呼叫 ClaimedReceiptPrinter.CreateJob。 只要建立的 ClaimedReceiptPrinter 物件有效,建立的列印工作物件就有效。

版本歷程記錄

Windows 版本 SDK 版本 已新增值
1903 18362 FeedPaperByLine
1903 18362 FeedPaperByMapModeUnit
1903 18362 Print (String,PosPrinterPrintOptions)
1903 18362 StampPaper

方法

CutPaper()

將指令新增至印表機作業,以完全剪下收據紙。

CutPaper(Double)

將指令新增至印表機作業,以剪下收據紙的指定百分比。

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

將指令新增至列印工作,以列印收據印表機站紙張上繪製的尺規線條。

ExecuteAsync()

以非同步方式在收據印表機站上執行列印工作。

FeedPaperByLine(Int32)

將指令新增至列印工作,以在收據印表機站上逐行饋送紙張。

FeedPaperByMapModeUnit(Int32)

將指令新增至列印工作,以透過收據印表機站上的地圖模式單位來饋送紙張。

MarkFeed(PosPrinterMarkFeedKind)

將指令新增至印表機作業,以使用收據印表機站的標記感應器來放置收據紙張。

Print(String)

將指令新增至列印工作,以列印收據印表機站上的指定文字。

Print(String, PosPrinterPrintOptions)

將指令新增至列印工作,以列印收據印表機站上的指定文字和選項。

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

將指令新增至列印工作,以在收據印表機站上列印具有指定資料和符號的條碼。

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

將指令新增至列印工作,以在收據印表機站上列印具有指定資料、符號系統及自訂對齊方式的條碼。

PrintBitmap(BitmapFrame, PosPrinterAlignment)

將指令新增至列印工作,以在收據印表機站上列印具有指定標準水準位置的指定點陣圖。

PrintBitmap(BitmapFrame, PosPrinterAlignment, UInt32)

將指令新增至列印工作,以列印具有指定寬度的指定點陣圖,以及收據印表機站上的標準水準位置。

PrintCustomAlignedBitmap(BitmapFrame, UInt32)

將指令新增至列印工作,以在收據印表機站上最左邊列印資料行的指定距離列印指定的點陣圖。

PrintCustomAlignedBitmap(BitmapFrame, UInt32, UInt32)

將指令新增至列印工作,以列印具有指定寬度的指定點陣圖,以及在收據印表機站上最左邊列印資料行的指定距離。

PrintLine()

將指令新增至列印工作,以列印收據印表機站上的分行符號。

PrintLine(String)

將指令新增至列印工作,以列印收據印表機站上的文字行。

PrintSavedBitmap(UInt32)

使用透過 SetBitmapSetCustomAlignedBitmap儲存至印表機的點陣圖,將指令新增至列印工作,以列印收據印表機站上的點陣圖。

SetBarcodeRotation(PosPrinterRotation)

設定收據印表機站頁面上條碼的旋轉。

SetBitmap(UInt32, BitmapFrame, PosPrinterAlignment)

儲存點陣圖的相關資訊,以及您想要用來在收據印表機站上列印該點陣圖的標準水準位置,以便您稍後可以使用 PrintSavedBitmap 方法將該資訊新增至列印工作。

SetBitmap(UInt32, BitmapFrame, PosPrinterAlignment, UInt32)

儲存點陣圖的相關資訊,以及您想要用來在收據印表機站上列印該點陣圖的標準水準位置,以便稍後使用 PrintSavedBitmap 方法將該資訊新增至列印工作。

SetCustomAlignedBitmap(UInt32, BitmapFrame, UInt32)

儲存點陣圖的相關資訊,以及您想要在收據印表機站上列印該點陣圖的最左邊列印資料行的距離,以便您稍後可以使用 PrintSavedBitmap 方法將該資訊新增至列印工作。

SetCustomAlignedBitmap(UInt32, BitmapFrame, UInt32, UInt32)

儲存點陣圖的相關資訊,以及您想要用來在收據印表機站上列印該點陣圖的最左邊列印資料行的距離,以便稍後使用 PrintSavedBitmap 方法將該資訊新增至列印工作。

SetPrintArea(Rect)

設定收據印表機站可以列印工作的頁面區域。

SetPrintRotation(PosPrinterRotation, Boolean)

設定收據印表機站頁面上文字或影像的旋轉。

StampPaper()

將指令新增至列印工作,以在收據印表機站上加上戳記。

適用於

另請參閱