Skip to main content

IPrintService.PrintAsync(String, String, PrintContentType) Method

Prints the document by the specified path 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

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

Parameters

Name Type Description
filePath String

The path to the document.

Optional Parameters

Name Type Default Description
jobTitle String "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

Type Description
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