JournalPrintJob JournalPrintJob JournalPrintJob JournalPrintJob Class

Definition

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

public : sealed class JournalPrintJob : IPosPrinterJobpublic sealed class JournalPrintJob : IPosPrinterJobPublic NotInheritable Class JournalPrintJob Implements IPosPrinterJob// You can use this class in JavaScript.
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 journal printer, call ClaimedJournalPrinter.CreateJob. The created print job object is valid as long as the ClaimedJournalPrinter object that created it is valid.

Methods

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

Runs the print job on the journal printer station asynchronously.

public : IAsyncOperation<PlatForm::Boolean> ExecuteAsync()public IAsyncOperation<bool> ExecuteAsync()Public Function ExecuteAsync() As IAsyncOperation( Of bool )// You can use this method in JavaScript.
Returns

The operation to run the print job. This operation returns true if the print job succeeds; otherwise, the operation returns false.

Remarks

The print job is sent to the claimed printer station object that created the print job. The claimed printer station object must remain valid when calling this method.

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

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

public : void Print(PlatForm::String data)public void Print(String data)Public Function Print(data As String) As void// You can use this method in JavaScript.
Parameters
data
PlatForm::String String String String

The text to print on the journal printer.

Remarks

If ClaimedPosPrinter.IsCharacterSetMappingEnabled is true, the text is mapped to the font on the printer that ClaimedPosPrinter.CharacterSet specifies. If ClaimedPosPrinter.IsCharacterSetMappingEnabled is false, the driver or provider sends the low byte of each Unicode character to the printer verbatim.

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

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

public : void PrintLine()public void PrintLine()Public Function PrintLine() As void// You can use this method in JavaScript.
See Also

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

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

public : void PrintLine(PlatForm::String data)public void PrintLine(String data)Public Function PrintLine(data As String) As void// You can use this method in JavaScript.
Parameters
data
PlatForm::String String String String

The line of text to print.

See Also