Skip to content

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

Closed
@LaughingJohn

Description

@LaughingJohn

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://..net/Reserved.ReportViewerWebControl.axd?ReportSession=oxunty3wdxdxk0rejkx04nba&Culture=1033&CultureOverrides=True&UICulture=1033&UICultureOverrides=True&ReportStack=1&ControlID=5d95c56b6fa54544b5fb21fe687617e8&RSProxy=https%3a%2f%2freporting..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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions