How to get the browser to receive the updated PDF file created in the SSRS report?

I have a webpage that downloads a pdf version of the ssrs report from the link. However, when I make changes to the data, the browser picks up the same PDF file as before, without updated information (pdf file stored in the temp folder). If I switch to another browser and download the PDF, I will get the new version, but the other browser will still get the old version. How to force the browser to download a new report in PDF format?

The URL I use to create the pdf is below:

http: //servername/ReportServer/Pages/ReportViewer.aspx? / MyReport / & rs: Command = Render & ReportID = 123456 & rs: Format = PDF

+3
source share
2 answers

I used the clearsession parameter to get a fresh pdf file with updated information, it looks like this in the URL:

http: // servername / ReportServer / Pages / ReportViewer.aspx? / MyReport / & rs: Command = Render & ReportID = 123456 & rs: Format = PDF & rs: ClearSession = true

Manage Report Sessions by URL

+6
source

Any of the threads will work.

0
source

Source: https://habr.com/ru/post/1716333/


All Articles