MicrosoftEdge / MicrosoftEdge/WebView2Feedback

PrintToPdfAsync() when printing PowerBi report produces empty pdf

Open
#3,749 3 comments 0 reactions 1 assignee View on GitHub

@vickiez is already working on this.

Since Aug 30, 2023.

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

Description

When invoking from c# code the Microsoft.Web.WebView2.Core.CoreWebView2.PrintToPdfAsync(string ResultFilePath, CoreWebView2PrintSettings printSettings = null)

It produces empty pdf. The only visible thing in the pdf is the iframe border. The same iframe that contains the embeded powerbi report. If I right click somewhere on the loaded page and from the context menu I select "Print" option and then from the Printer selection dropdown I choose the "Save to PDF" then I am able to save the same powerbi report in pdf file which has all the content of the report.

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.