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]: PrintAsync returns CoreWebView2PrintStatus.OtherError when user cancels save as dialog #4667

Open
Hedwig188 opened this issue Jul 8, 2024 · 1 comment
Assignees
Labels
bug Something isn't working tracked We are tracking this work internally.

Comments

@Hedwig188
Copy link

Hedwig188 commented Jul 8, 2024

What happened?

When using the PrintAsync function to print to the "Microsoft Print to PDF" printer, if you cancel the "Save As" dialog, the function returns CoreWebView2PrintStatus.OtherError. This issue does not occur when printing in Edge.

Importance

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

Runtime Channel

Stable release (WebView2 Runtime)

Runtime Version

125.0.2535.85

SDK Version

1.0.2277.86

Framework

Winforms

Operating System

Windows 11

OS Version

22631.3737

Repro steps

CoreWebView2PrintSettings printSettings = webView.CoreWebView2.Environment.CreatePrintSettings();
printSettings.PrinterName = "Microsoft Print to PDF";
CoreWebView2PrintStatus printStatus = await webView.CoreWebView2.PrintAsync(printSettings);

Click Cancel on the Save as Dialog
See the printStatus returns OtherError.

Repros in Edge Browser

No, issue does not reproduce in the corresponding Edge version

Regression

Don't know

Last working version (if regression)

No response

AB#52577207

@Hedwig188 Hedwig188 added the bug Something isn't working label Jul 8, 2024
@monica-ch monica-ch added the tracked We are tracking this work internally. label Jul 17, 2024
@victorhuangwq victorhuangwq added tracked We are tracking this work internally. and removed tracked We are tracking this work internally. labels Jul 18, 2024
@champnic
Copy link
Member

✅ Successfully linked to Azure Boards work item(s):

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

4 participants