IPosPrinterJob IPosPrinterJob IPosPrinterJob IPosPrinterJob Interface

Definition

Represents actions common to jobs for all types of stations for a point-of-service printer.

public : interface IPosPrinterJobpublic interface IPosPrinterJobPublic Interface IPosPrinterJob// You can use this interface 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)

Methods

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

Runs the print job on the 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.

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 point-of-service 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.

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.

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