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

[Problem/Bug]: ShouldPrintSelectionOnly does not work for PrintToPdfStreamAsync #4539

Open
Clemani opened this issue May 6, 2024 · 0 comments
Assignees
Labels
bug Something isn't working tracked We are tracking this work internally.

Comments

@Clemani
Copy link

Clemani commented May 6, 2024

What happened?

When the user has selected text my app asks him wether to print only the selection.
Setting ShouldPrintSelectionOnly to True in the print options has no effect for PrintToPdfStreamAsync

When using ShowPrintUI and let the user check the box for printing only the selection it works fine. However this is no feasable workaround for me, the printing needs to be done silently in the background

Importance

Moderate. My app's user experience is affected, but still usable.

Runtime Channel

Stable release (WebView2 Runtime)

Runtime Version

124.0.2478.67

SDK Version

1.0.2365.46

Framework

Winforms

Operating System

Windows 11

OS Version

No response

Repro steps

Go to a website
Select text on it.
Call PrintToPdfStreamAsync with print option ShouldPrintSelectionOnly=True
Expected: Get a PDF with the selected region only
Actual behaviour: The whole page appears on the PDF

Repros in Edge Browser

No, issue does not reproduce in the corresponding Edge version

Regression

No, this never worked

Last working version (if regression)

No response

AB#50706809

@Clemani Clemani added the bug Something isn't working label May 6, 2024
@monica-ch monica-ch added the tracked We are tracking this work internally. label May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working tracked We are tracking this work internally.
Projects
None yet
Development

No branches or pull requests

2 participants