Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature]: Result of calling ShowPrintUI #4741

Open
Volodymyr-Sheremet opened this issue Aug 14, 2024 · 4 comments
Open

[Feature]: Result of calling ShowPrintUI #4741

Volodymyr-Sheremet opened this issue Aug 14, 2024 · 4 comments
Labels
feature request feature request

Comments

@Volodymyr-Sheremet
Copy link

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.

@Volodymyr-Sheremet Volodymyr-Sheremet added the feature request feature request label Aug 14, 2024
@pushkin-
Copy link

pushkin- commented Oct 10, 2024

this is related to #42

@Volodymyr-Sheremet
Copy link
Author

I didn't see a single mention of the result of calling the ShowPrintUI in the #42, nor did I see a single discussion of the issue I raised.

@pushkin-
Copy link

@Volodymyr-Sheremet I was looking at "Can you make an event that is triggered when the print dialog/window is closed? "

It's different but related. I would say this could safely be merged with that other issue, but anyway, the WebView2 team can decide what they want to do. I was just pointing out that other issue in case you didn't see it.

@Volodymyr-Sheremet
Copy link
Author

Volodymyr-Sheremet commented Oct 19, 2024

Everything is fine. Before creating a request, I carefully reviewed all similar topics.
The only thing I would ask you to do is change the meaning of "this is a dupe of #42" to "this is related to #42". After all, this request is definitely not a duplicate. ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request feature request
Projects
None yet
Development

No branches or pull requests

2 participants