Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Dynamically create filename in SSRS 2008

I have been asked a couple times to change the file name dynamically in SSRS 2008. Example: ReportName_201101.RDL. The 201101 represents the execution date. Can this be accomplished in SSRS 2008?

like image 449
Rebecca Avatar asked Jan 18 '11 14:01

Rebecca


2 Answers

If you mean the filename when you export the report and also happen to be pulling it from the ASP.NET ReportViewer, you can set the name through the DisplayName property.

ReportViewerControl.ServerReport.DisplayName = "ReportName_201101";

or (if ProcessingMode is Local):

ReportViewerControl.LocalReport.DisplayName = "ReportName_201101";

For pretty much all other cases, Alison is right.

like image 55
Joel Beckham Avatar answered Sep 27 '22 17:09

Joel Beckham


There is an MS Connect item open for this. It only has a few votes, so head over there and upvote it...

like image 44
Jonathan Sayce Avatar answered Sep 27 '22 16:09

Jonathan Sayce