MicrosoftEdge / MicrosoftEdge/WebView2Feedback
PrintToPdfAsync() when printing PowerBi report produces empty pdf
@vickiez is already working on this.
Since Aug 30, 2023.
- 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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.