Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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

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

#Parameters

Name Type Description
stream Stream

A stream.

#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