MicrosoftEdge / MicrosoftEdge/WebView2Feedback

[Feature]: Result of calling ShowPrintUI

Open
#4,741 4 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature request
Dominant language
PowerShell
Stars
526
Forks
67
PR merge metrics
No merged PRs in 30d

Description

Describe the feature/enhancement you need

Once the print preview window has been called, there is no way to know whether it was completed by clicking the Print button or by clicking the Cancel button.
I would like to have the following two options:

  1. ShowPrintUI should show a modal preview window.
  2. ShowPrintUI should return a True/False value indicating whether the document was sent to print or not.
The scenario/use case where you would use this feature
  1. Preview a specific document.
  2. If the user has sent the document to printer (pressed the Print button), then add a mark to the system that the document has been printed, print the accompanying documents and send an email with a notification to the Client.
  3. If the user has not sent the document to print (pressed the Cancel button or closed the window in another way), then do nothing.
How important is this request to you?

Impactful. My app's user experience would be significantly compromised without it.

Suggested implementation

No response

What does your app do? Is there a pending deadline for this request?

Our application uses WebView2 to print various medical reports.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the ShowPrintUI API and the existing WebView2 printing behavior described in this issue. Determine how modal completion and cancellation are currently exposed, then define an API result that distinguishes printing from cancellation or window closure; the work is done when both requested behaviors are supported and documented.

Written by the indexing model from the issue text.

Assessment

Domain
desktop
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.