MicrosoftEdge / MicrosoftEdge/WebView2Feedback

Print button not working by using WebView2 to render a PDF in an UWP APP

Open
#3,135 11 comments 2 reactions 1 assignee View on GitHub

@monica-ch is already working on this.

Since Jan 20, 2023.

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

Description

Description

I'm trying to create an UWP app and embed a WebView2 in WinUI 2. Then I try to render a PDF host in a remote server in the WebView2, the PDF can be rendered normally, but when I click the print button in the toolbar, nothing happen and no printing preview dialog display. May I know it's a known issue? Thanks.

Version

SDK: 1.0.1418.22
Runtime: 109.0.1518.52
Framework: UWP WinUI 2.8.1
OS: Win10 20H2

Repro Steps

1: Try to create an UWP app and embed a WebView2 in the main page, follow the guide https://learn.microsoft.com/en-us/microsoft-edge/webview2/get-started/winui2

2: Render a PDF host in remote server with the WebView2

3: Try to press the print button in the toolbar.

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.