4
votes

I have a web page that downloads a pdf version of an ssrs report through a link. However when I make changes to the data, the browser pulls up the same pdf file as before without the updated information (the pdf file stored in the temp folder). If I then go to another browser and download the PDF I get the new version, but the other browser still gets the old version. How can I force the browser to download a new version of the pdf report?

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

2

2 Answers

7
votes

I used the clearsession parameter to get a fresh pdf 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

Managing Report Sessions on a URL

0
votes

Any one of the flowing will work.