-
Notifications
You must be signed in to change notification settings - Fork 51
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
PrintAsync Function Bug #3379
Comments
Thanks for reporting the issue. I've assigned this to a dev that can help follow up on this. |
@clayzzzzzzzzzz Is printing to the same printer |
Thanks |
Yes! |
@clayzzzzzzzzzz Looks like issued is resolved. Closing the issue, feel free to reopen if you have any questions. |
Thanks |
Hi, this issue still exists in version 1.0.1774.30. Version |
Hi @monica-ch customer reports the issue still exists in version 1.0.1774.30, so I reopened the issue. May you take another look? |
@clayzzzzzzzzzz Sorry you are seeing the issue again. May I know the WV2 runtime version installed on your machine? Also, I believe printer name is either of HP LaserJet 400 M401 PCL6 Class Driver()/HP LaserJet 400 M401 PCL6 Class Driver right? |
@monica-ch The WebView2 Runtime version is 114.0.1823.43 |
@clayzzzzzzzzzz Yes able to repro it locally if printer name has Chinese characters. We are actively working on the fix and update the thread once we fix is in. Thanks! |
@clayzzzzzzzzzz This should be fixed in runtimes 116.0.1932.0+. Thanks! |
I would like to know how to upgrade webview2 runtime, I upgraded webview2 from 1.0.1774.30 to 1.0.1905-prerelease in Nuget, but the runtime was still 114.0.1823.43. |
@clayzzzzzzzzzz You can use Edge canary channel for testing as the fix is not in the stable runtime yet. Please refer Testing upcoming APIs doc for more info. |
@monica-ch Thank you for your help |
Description
If the printer name contains Chinese or full width spaces, the PrintAsync function will fail.
Here is my code:
CoreWebView2PrintSettings printSettings = webView.CoreWebView2.Environment.CreatePrintSettings();
printSettings.PrinterName = "HP LaserJet 400 M401 PCL6 Class Driver(副本1)";
CoreWebView2PrintStatus printStatus = await webView.CoreWebView2.PrintAsync(printSettings);
printStatus will be OtherError.
Version
SDK: Microsoft.Web.WebView2 v1.0.1722.32
Runtime: C# .NET Framework 4.6.1
Framework: WinForms
OS: Win10
AB#44135146
The text was updated successfully, but these errors were encountered: