JournalPrintJob.Print Method

Definition

Overloads

Print(String)

Adds an instruction to the print job to print the specified text 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.

public:
 virtual void Print(Platform::String ^ data) = Print;
void Print(winrt::hstring const& data);
public void Print(string data);
function print(data)
Public Sub Print (data As String)

Parameters

data
String

Platform::String

winrt::hstring

The text to print on the journal printer.

Implements

M:Windows.Devices.PointOfService.IPosPrinterJob.Print(System.String) M:Windows.Devices.PointOfService.IPosPrinterJob.Print(Platform::String) M:Windows.Devices.PointOfService.IPosPrinterJob.Print(winrt::hstring)

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.

See also

Applies to

Print(String, PosPrinterPrintOptions)

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

public:
 virtual void Print(Platform::String ^ data, PosPrinterPrintOptions ^ printOptions) = Print;
void Print(winrt::hstring const& data, PosPrinterPrintOptions const& printOptions);
public void Print(string data, PosPrinterPrintOptions printOptions);
function print(data, printOptions)
Public Sub Print (data As String, printOptions As PosPrinterPrintOptions)

Parameters

data
String

Platform::String

winrt::hstring

The text to print on the journal printer.

printOptions
PosPrinterPrintOptions

The print options of the text to print on the journal printer.

Windows requirements

Device family
Windows 10, version 1903 (introduced in 10.0.18362.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v8.0)

Applies to