WebView2Feedback icon indicating copy to clipboard operation
WebView2Feedback copied to clipboard

[Problem/Bug]: Download PDF no longer works in SQL report viewer

Open LaughingJohn opened this issue 9 months ago • 0 comments

What happened?

We have SQL report viewer hosted in a webview2 control in WPF.

After a report is displayed the user used to be able to download the report as a PDF. This used to open a pop-up window which then saved the PDF file, although the window (annoyingly) remained open.

A recent release of webview2 this appears to have broken this functionality, the window still opens but the file does not download. This appears to also be true of the other possible file types that sql report viewer allows you to download (Word, Excel etc).

Copying the link to a browser does download the file.

Currently this is failing for some of our users and not others as it seems to affect only those with the most recent version. I'm not entirely sure which version introduced the issue.

Image

Image

Link format (with domain name removed) is:

https://<SUBDOMAIN>.<DOMAIN>.net/Reserved.ReportViewerWebControl.axd?ReportSession=oxunty3wdxdxk0rejkx04nba&Culture=1033&CultureOverrides=True&UICulture=1033&UICultureOverrides=True&ReportStack=1&ControlID=5d95c56b6fa54544b5fb21fe687617e8&RSProxy=https%3a%2f%2freporting.<DOMAIN>.net%2fReportServer&OpType=Export&FileName=ContactListChanges&ContentDisposition=OnlyHtmlInline&Format=PDF

Importance

Moderate. My app's user experience is affected, but still usable.

Runtime Channel

Stable release (WebView2 Runtime)

Runtime Version

135.0.3179.54

SDK Version

1.0.1418.22

Framework

WPF

Operating System

Windows 11

OS Version

26100.3775

Repro steps

Load a report viewer report in a webview2 control. Click the save/download button to create a file. The link window opens but nothing happens. It used to open and download the file.

Repros in Edge Browser

No, issue does not reproduce in the corresponding Edge version

Regression

No, this never worked

Last working version (if regression)

No response

LaughingJohn avatar Apr 11 '25 16:04 LaughingJohn