automatically downloaded. Is it possible also provide a file name?
The download is done by the browser, not by SSRS; no, you can not pass a filename.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
If I specify format parameter (PDF) I get a report in PDF format automatically downloaded. Is it possible also provide a file name?
Thanks
automatically downloaded. Is it possible also provide a file name?
The download is done by the browser, not by SSRS; no, you can not pass a filename.
Hi @Zolotoy ,
As far as I know. I think it is impossible to export the pdf report with the specified file name in SSRS.
Best Regards,
Joy
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
If you want to create downloaded file name dynamically in SSRS reports, you could try this code:
ReportViewer.ServerReport.DisplayName = <Your Parameter Value>;
This code is only applicable if you are using report viewer control in your application (web or windows) to display reports. If your are using SSRS in standalone way, there is no way to achive this.
Joy
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
I am getting: ReportViewer is not defined.
I am trying this code:
<rsweb:ReportViewer ID="ReportViewer1"
document.getElementById('ReportViewer1').ServerReport.DisplayName = "test.pdf"
it's not failing but not doing anything.
Does it only work for RDLC reports?