You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Hi @v4sil-k, we are tracking a few similar requests in #1990, #2949, and #3563. Do any of those address your concern?
Hi @vickiez, yes indeed, it looks like those are very similar if not the same as the problem I am facing. Do you know of any progress on these mentioned issues?
By the way, may I suggest something - this is for the developers of course. As I already mentioned when you invoke the print dialog from the popup menu and choose the "Save as PDF" in the printer dropdown - it works! I need to clarify something here! This option "Save as PDF" is not the same as the printer: "Microsoft Print to DPF"- which one you may need to install as a windows feature. The options "Save as PDF" is there in the dropdown no matter you have the mentioned printer installed or not. Which leads me to the conclusion that this option is browser provided (in our case WebView2 provided) If we were able to programmatically set this "printer" option in the printer name when we provide printer settings to the print(..) method, along with file name of course (this last one is not an option in the printer settings) so if we were given this functionality we are good to go as I already mentioned this produces PDF that is OK. I hope I was clear.
@v4sil-k that work has been lower priority unfortunately, but you can add feedback to existing issues to help boost them.
Adding Save As PDF to our Print API wouldn't automatically work for your scenario because our Print APIs only apply to the WebView object, not any frames. (Our PrintToPDF API works the same way as Save As PDF, but it's also only available on the WebView).
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.
The text was updated successfully, but these errors were encountered: