Back to Devexpress

IPrintService.PrintAsync(Stream, String, PrintContentType) Method

maui-devexpress-dot-maui-dot-mvvm-dot-iprintservice-dot-printasync-x28-system-dot-io-dot-stream-system-dot-string-devexpress-dot-maui-dot-mvvm-dot-printcontenttype-x29.md

latest1.8 KB
Original Source

IPrintService.PrintAsync(Stream, String, PrintContentType) Method

Shows the system print dialog asynchronously. The method returns the Task that completes when the print operation is started or cancelled.

Namespace : DevExpress.Maui.Mvvm

Assembly : DevExpress.Maui.Mvvm.dll

NuGet Package : DevExpress.Maui.Mvvm

Declaration

csharp
Task<bool> PrintAsync(
    Stream stream,
    string jobTitle = "Print Document",
    PrintContentType printContentType = PrintContentType.Pdf
)

Parameters

NameTypeDescription
streamStream

A stream.

|

Optional Parameters

NameTypeDefaultDescription
jobTitleString"Print Document"

The title of the print job. This title is most often displayed in the printer’s job queue or user interface.

| | printContentType | PrintContentType | Pdf |

The content type.

|

Returns

TypeDescription
Task<Boolean>

An operation that executes asynchronously and is completed when the print operation is started or canceled. The Task returns true when the print operation starts; otherwise, false.

|

See Also

IPrintService Interface

IPrintService Members

DevExpress.Maui.Mvvm Namespace