Share via


JournalPrintJob Class

Definition

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

public ref class JournalPrintJob sealed : IPosPrinterJob
/// [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 JournalPrintJob final : IPosPrinterJob
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class JournalPrintJob final : IPosPrinterJob
[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 JournalPrintJob : IPosPrinterJob
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class JournalPrintJob : IPosPrinterJob
Public NotInheritable Class JournalPrintJob
Implements IPosPrinterJob
Inheritance
Object Platform::Object IInspectable JournalPrintJob
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 journal printer, call ClaimedJournalPrinter.CreateJob. The created print job object is valid as long as the ClaimedJournalPrinter 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

ExecuteAsync()

Runs the print job on the journal printer station asynchronously.

FeedPaperByLine(Int32)

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

FeedPaperByMapModeUnit(Int32)

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

Print(String, PosPrinterPrintOptions)

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

Print(String)

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

PrintLine()

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

PrintLine(String)

Adds an instruction to the print job to print the specified line of text on the journal printer station.

Applies to

See also